mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-29 02:44:43 +00:00
ansible-test: Do not use automatic field numbering specification
Automatic field numbering specification is not allowed by ansible-test.
This commit is contained in:
@@ -40,7 +40,7 @@ def pytest_configure(config):
|
||||
if os.path.exists(config_dir):
|
||||
inventory_path = os.path.join(config_dir, "test.inventory.yml")
|
||||
inventory = get_inventory(inventory_path)
|
||||
print("Configuring execution using {}".format(inventory_path))
|
||||
print("Configuring execution using {0}".format(inventory_path))
|
||||
ipaservers = inventory["all"]["children"]["ipaserver"]["hosts"]
|
||||
ipaserver = list(ipaservers.values())[0]
|
||||
private_key = os.path.join(config_dir, "id_rsa")
|
||||
|
||||
@@ -180,7 +180,7 @@ def run_playbook(playbook, allow_failures=False):
|
||||
if allow_failures:
|
||||
return result
|
||||
|
||||
status_code_msg = "ansible-playbook return code: {}".format(
|
||||
status_code_msg = "ansible-playbook return code: {0}".format(
|
||||
result.returncode
|
||||
)
|
||||
assert_msg = "\n".join(
|
||||
|
||||
Reference in New Issue
Block a user