From f1ba0abed176c4f1752d3b5334cb466715e33136 Mon Sep 17 00:00:00 2001 From: Thirumalesh Aaraveti Date: Wed, 29 Nov 2023 13:56:38 +0530 Subject: [PATCH] Removed the spot_savings_analysis policy daily policy runner --- .../aws/zombie_non_cluster/run_zombie_non_cluster_policies.py | 2 ++ jenkins/clouds/aws/daily/policies/run_policies.py | 1 + 2 files changed, 3 insertions(+) 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 7cc51e5c..c1458aec 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 @@ -336,6 +336,8 @@ def _organise_instance_data(self, resources: list): for attachment in volume.get('Attachments'): attachment['AttachTime'] = attachment['AttachTime'].strftime("%Y-%m-%dT%H:%M:%S+00:00") volume['CreateTime'] = volume['CreateTime'].strftime("%Y-%m-%dT%H:%M:%S+00:00") + if 'Tags' in volume: + del volume['Tags'] organize_data.append(volume) return organize_data diff --git a/jenkins/clouds/aws/daily/policies/run_policies.py b/jenkins/clouds/aws/daily/policies/run_policies.py index 0bf23045..04d74ed5 100644 --- a/jenkins/clouds/aws/daily/policies/run_policies.py +++ b/jenkins/clouds/aws/daily/policies/run_policies.py @@ -56,6 +56,7 @@ def get_policies(type: str = None): policies.remove('monthly_report') policies.remove('cost_billing_reports') policies.remove('cost_explorer_payer_billings') +policies.remove('spot_savings_analysis') for region in regions: for policy in policies: