Skip to content

Commit

Permalink
Fixed the upload error
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma committed Apr 17, 2024
1 parent 8cca21e commit dddeb6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dddeb6c

Please sign in to comment.