Skip to content

Commit

Permalink
Moved the policy to cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma committed Feb 20, 2024
1 parent 4a06c70 commit 07bf904
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cloud_governance/main/main_oerations/main_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 07bf904

Please sign in to comment.