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