From 07bf90426800b654a939ef1754de886ee0059fe8 Mon Sep 17 00:00:00 2001 From: Thirumalesh Aaraveti Date: Tue, 20 Feb 2024 14:14:01 +0530 Subject: [PATCH] Moved the policy to cleanup --- cloud_governance/main/main_oerations/main_operations.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cloud_governance/main/main_oerations/main_operations.py b/cloud_governance/main/main_oerations/main_operations.py index fa326a68..0ecefdd9 100644 --- a/cloud_governance/main/main_oerations/main_operations.py +++ b/cloud_governance/main/main_oerations/main_operations.py @@ -40,6 +40,9 @@ def run(self): # @Todo support for all the aws policies, currently supports ec2_run as urgent requirement if self._policy in policies and self._policy in ["instance_run", "unattached_volume", "cluster_run", "ip_unattached"]: - policy_runner.run(source=policy_type) + source = policy_type + if Utils.equal_ignore_case(policy_type, self._public_cloud_name): + source = '' + policy_runner.run(source=source) return True return False