return self._apply_misc([s], False, Format.plain)
@_cli_write_command('orch host rm')
- def _remove_host(self, hostname: str) -> HandleCommandResult:
+ def _remove_host(self, hostname: str, force: bool = False, offline: bool = False) -> HandleCommandResult:
"""Remove a host"""
- completion = self.remove_host(hostname)
+ completion = self.remove_host(hostname, force, offline)
+ raise_if_exception(completion)
+ return HandleCommandResult(stdout=completion.result_str())
+
+ @_cli_write_command('orch host drain')
+ def _drain_host(self, hostname: str) -> HandleCommandResult:
+ """drain all daemons from a host"""
+ completion = self.drain_host(hostname)
raise_if_exception(completion)
return HandleCommandResult(stdout=completion.result_str())