Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8720)

* Remove bad whitespace.

* 'Fixing' various used-before-assignment issues that pylint flagged.
This commit is contained in:
Felix Fontein 2024-08-07 15:18:58 +02:00 committed by GitHub
parent 5b2711bbd3
commit 9a16eaf9ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 16 additions and 1 deletions

View file

@ -356,6 +356,7 @@ class OpenTelemetrySource(object):
status = Status(status_code=StatusCode.OK)
if host_data.status != 'included':
# Support loops
enriched_error_message = None
if 'results' in host_data.result._result:
if host_data.status == 'failed':
message = self.get_error_message_from_results(host_data.result._result['results'], task_data.action)