ansible-test - Fix codespell test (#86419)

Prevent a traceback when test results are empty.
pull/76156/merge
Matt Clay 6 days ago committed by GitHub
parent 113e0bbb93
commit 330f40b4f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -84,7 +84,8 @@ def main() -> None:
results.append(f"{path}:{line_num}:{col_num}: {code}: {left} ==> {right}")
print('\n'.join(results))
if results:
print('\n'.join(results))
def parse_to_list_of_dict(pattern: re.Pattern, value: str) -> list[dict[str, t.Any]]:

Loading…
Cancel
Save