diff --git a/ceph/rados/serviceability_workflows.py b/ceph/rados/serviceability_workflows.py index 91f0fc8b1..3290fb999 100644 --- a/ceph/rados/serviceability_workflows.py +++ b/ceph/rados/serviceability_workflows.py @@ -225,7 +225,7 @@ def remove_custom_host(self, host_node_name: str): Returns: None | raises exception in case of failure """ - status_cmd = "" + status_cmd = "ceph orch osd rm status -f json" try: def wait_osd_operation_status(status_cmd): @@ -286,7 +286,6 @@ def wait_osd_operation_status(status_cmd): if osd_id in osd_out_list: osd_utils.osd_remove(self.cluster, osd_id=osd_id, zap=True) time.sleep(10) - status_cmd = "ceph orch osd rm status -f json" if wait_osd_operation_status(status_cmd): log.info("The OSD successfully removed") else: