-
Notifications
You must be signed in to change notification settings - Fork 11
Bugfix for error while updating top level message field in status file #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #152 +/- ##
=======================================
Coverage 87.28% 87.28%
=======================================
Files 48 48
Lines 8324 8324
=======================================
Hits 7266 7266
Misses 1058 1058
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
self.update_key_value_safely(status_json[0], self.file_keys.status_status, status, self.file_keys.status_status) | ||
self.update_key_value_safely(status_json[0], self.file_keys.status_code, code, self.file_keys.status_status) | ||
self.update_key_value_safely(status_json[0], self.file_keys.timestamp_utc, str(datetime.datetime.utcnow().strftime(Constants.UTC_DATETIME_FORMAT))) | ||
self.update_key_value_safely(status_json[0][self.file_keys.status_status], self.file_keys.status_formatted_message_message, str(message), self.file_keys.status_formatted_message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the status_status
key used here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved.
self.update_key_value_safely(status_json[0], self.file_keys.status_status, status, self.file_keys.status_status) | ||
self.update_key_value_safely(status_json[0], self.file_keys.status_code, code, self.file_keys.status_status) | ||
self.update_key_value_safely(status_json[0], self.file_keys.timestamp_utc, str(datetime.datetime.utcnow().strftime(Constants.UTC_DATETIME_FORMAT))) | ||
self.update_key_value_safely(status_json[0][self.file_keys.status_status], self.file_keys.status_formatted_message_message, str(message), self.file_keys.status_formatted_message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should there be a comma between status_json[0] and self.file_keys?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because it's to access the key inside status_json[0]
Existing code was failing to write top level message in status file with the error reported as

This was not a blocker or terminal error but affected our reporting status accurately in status blob