Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cloud_governance/policy/aws/cleanup/unused_nat_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ def run_policy_operations(self):
resource_action=self.RESOURCE_ACTION,
cloud_name=self._cloud_name,
resource_type='NatGateway',
resource_state=nat_gateway.get('State'),
unit_price=unit_price
if not cleanup_result else "Deleted")
resource_state=nat_gateway.get('State')
if not cleanup_result else "Deleted",
unit_price=unit_price)
unused_nat_gateways.append(resource_data)
if not cleanup_result:
self.update_resource_tags(resource_id=resource_id, tags=tags + self.cost_savings_tag)
Expand Down