From 099a1ce7a147ead00cd9d86cae87a2c9a86bc3fc Mon Sep 17 00:00:00 2001 From: Thirumalesh Aaraveti <97395760+athiruma@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:33:00 +0530 Subject: [PATCH] Fixed the upload error (#755) --- .../clouds/aws/ec2/collect_cro_reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud_governance/cloud_resource_orchestration/clouds/aws/ec2/collect_cro_reports.py b/cloud_governance/cloud_resource_orchestration/clouds/aws/ec2/collect_cro_reports.py index 3366fd78..81856385 100644 --- a/cloud_governance/cloud_resource_orchestration/clouds/aws/ec2/collect_cro_reports.py +++ b/cloud_governance/cloud_resource_orchestration/clouds/aws/ec2/collect_cro_reports.py @@ -225,7 +225,7 @@ def __upload_cro_report_to_es(self, monitor_data: dict): self.__cost_over_usage.es_operations.update_elasticsearch_index(index=self.__es_index_cro, id=ticket_id, metadata=source) upload_data[ticket_id] = source else: - if self.__check_value_in_es(tag_key='ticket_id_state', tag_value='manager-approved', ticket_id=ticket_id): + if self.__check_value_in_es(tag_key='ticket_id_state', tag_value='manager-approved', ticket_id=ticket_id) or issue_description.get('ApprovedManager') != '': es_data['_source']['ticket_id_state'] = 'in-progress' self.__cost_over_usage.es_operations.update_elasticsearch_index(index=self.__es_index_cro, id=ticket_id, metadata=source) upload_data[ticket_id] = source