From 15981117ee28627f235264e505e1e0d5956cf4e4 Mon Sep 17 00:00:00 2001 From: "Chandan Kumar (raukadah)" Date: Mon, 9 Jun 2025 10:51:45 +0530 Subject: [PATCH] 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) --- .../strategy/strategies/host_maintenance.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/watcher/decision_engine/strategy/strategies/host_maintenance.py b/watcher/decision_engine/strategy/strategies/host_maintenance.py index da694612d..22b284719 100644 --- a/watcher/decision_engine/strategy/strategies/host_maintenance.py +++ b/watcher/decision_engine/strategy/strategies/host_maintenance.py @@ -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):