From 228f289a3af21834c6939dfc967a5416dd4363a8 Mon Sep 17 00:00:00 2001
From: Thirumalesh Aaraveti <97395760+athiruma@users.noreply.github.com>
Date: Wed, 6 Sep 2023 13:28:20 +0530
Subject: [PATCH] Added the missing delete_days_attribute to clanup tag_update
 (#667)

---
 .../aws/zombie_non_cluster/run_zombie_non_cluster_policies.py   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cloud_governance/policy/policy_operations/aws/zombie_non_cluster/run_zombie_non_cluster_policies.py b/cloud_governance/policy/policy_operations/aws/zombie_non_cluster/run_zombie_non_cluster_policies.py
index 7188af6e..c1b765a0 100644
--- a/cloud_governance/policy/policy_operations/aws/zombie_non_cluster/run_zombie_non_cluster_policies.py
+++ b/cloud_governance/policy/policy_operations/aws/zombie_non_cluster/run_zombie_non_cluster_policies.py
@@ -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: