diff --git a/cloud_governance/policy/aws/cleanup/unused_nat_gateway.py b/cloud_governance/policy/aws/cleanup/unused_nat_gateway.py index ab0fc612..765fff70 100644 --- a/cloud_governance/policy/aws/cleanup/unused_nat_gateway.py +++ b/cloud_governance/policy/aws/cleanup/unused_nat_gateway.py @@ -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)