Skip to content

Commit

Permalink
Added the missing delete_days_attribute to clanup tag_update (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma authored Sep 6, 2023
1 parent 08382dd commit 228f289
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _update_resource_tags(self, resource_id: str, left_out_days: int, tags: list
This method update the tags in aws
@return:
"""
if left_out_days < 7 or self._dry_run == 'yes' or self._get_policy_value(tags=tags) in ('NOTDELETE', 'SKIP'):
if left_out_days < self.DAYS_TO_DELETE_RESOURCE or self._dry_run == 'yes' or self._get_policy_value(tags=tags) in ('NOTDELETE', 'SKIP'):
if self._get_tag_name_from_tags(tags=tags, tag_name='LastUsedDay')\
or self._get_tag_name_from_tags(tags=tags, tag_name='DryRunNoDays')\
or resource_left_out:
Expand Down

0 comments on commit 228f289

Please sign in to comment.