Skip to content

Commit 3c47c99

Browse files
authored
Fix multiple 'Deleted' strings from logs (#1000)
1 parent ea49ded commit 3c47c99

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cloud_governance/policy/aws/cleanup/unused_nat_gateway.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def run_policy_operations(self):
8585
resource_action=self.RESOURCE_ACTION,
8686
cloud_name=self._cloud_name,
8787
resource_type='NatGateway',
88-
resource_state=nat_gateway.get('State'),
89-
unit_price=unit_price
90-
if not cleanup_result else "Deleted")
88+
resource_state=nat_gateway.get('State')
89+
if not cleanup_result else "Deleted",
90+
unit_price=unit_price)
9191
unused_nat_gateways.append(resource_data)
9292
if not cleanup_result:
9393
self.update_resource_tags(resource_id=resource_id, tags=tags + self.cost_savings_tag)

0 commit comments

Comments
 (0)