Cleanup hacking scripts to prepare for pylint update. (#75474)

* Use generator in get_recent_coverage_runs.py
* Use from import in test-module.py
pull/75479/head
Matt Clay 3 years ago committed by GitHub
parent 04009a77e6
commit a5b0626176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,7 +63,7 @@ def get_coverage_runs():
artifact_response.raise_for_status()
artifacts = artifact_response.json()['value']
if any([a["name"].startswith("Coverage") for a in artifacts]):
if any(a["name"].startswith("Coverage") for a in artifacts):
# TODO wrongfully skipped if all jobs failed.
coverage_runs.append(run)

@ -44,7 +44,7 @@ import ansible.utils.vars as utils_vars
from ansible.parsing.dataloader import DataLoader
from ansible.parsing.utils.jsonify import jsonify
from ansible.parsing.splitter import parse_kv
import ansible.executor.module_common as module_common
from ansible.executor import module_common
import ansible.constants as C
from ansible.module_utils._text import to_native, to_text
from ansible.template import Templar

Loading…
Cancel
Save