Drop unused method get_disabled_compute_nodes_with_reason

get_disabled_compute_nodes_with_reason defined in host_maintenance
strategy is not used anywhere.

This cr drops the unused method.

Change-Id: I07c0d0b63e00d476511aa8b03c0feab8ec4db95b
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
This commit is contained in:
Chandan Kumar (raukadah)
2025-06-09 10:51:45 +05:30
parent 73f8728d22
commit 15981117ee

View File

@@ -87,13 +87,6 @@ class HostMaintenance(base.HostMaintenanceBaseStrategy):
"required": ["maintenance_node"],
}
def get_disabled_compute_nodes_with_reason(self, reason=None):
return {uuid: cn for uuid, cn in
self.compute_model.get_all_compute_nodes().items()
if cn.state == element.ServiceState.ONLINE.value and
cn.status == element.ServiceState.DISABLED.value and
cn.disabled_reason == reason}
def get_instance_state_str(self, instance):
"""Get instance state in string format"""
if isinstance(instance.state, str):