ansible-test: Do not use automatic field numbering specification

Automatic field numbering specification is not allowed by ansible-test.
This commit is contained in:
Thomas Woerner
2023-05-04 17:17:26 +02:00
parent 98681bd4d2
commit a4b8e10a40
11 changed files with 22 additions and 20 deletions

View File

@@ -450,7 +450,7 @@ def main():
if installer.ca_cert_files is not None:
if not isinstance(installer.ca_cert_files, list):
ansible_module.fail_json(
msg="Expected list, got {!r}".format(installer.ca_cert_files))
msg="Expected list, got {0!r}".format(installer.ca_cert_files))
for cert in installer.ca_cert_files:
if not os.path.exists(cert):
ansible_module.fail_json(msg="'%s' does not exist" % cert)