diff --git a/kayobe/kolla_ansible.py b/kayobe/kolla_ansible.py index 1d23647c1..8b0028398 100644 --- a/kayobe/kolla_ansible.py +++ b/kayobe/kolla_ansible.py @@ -144,7 +144,7 @@ def build_args(parsed_args, command, inventory_filename, extra_vars=None, cmd += ["-" + "v" * verbose_level] if parsed_args.kolla_playbook: cmd += ["--playbook", parsed_args.kolla_playbook] - cmd += vault.build_args(parsed_args, "--key") + cmd += vault.build_args(parsed_args, "--vault-password-file") inventories = _get_inventory_paths(parsed_args, inventory_filename) for inventory in inventories: cmd += ["--inventory", inventory] diff --git a/kayobe/tests/unit/test_kolla_ansible.py b/kayobe/tests/unit/test_kolla_ansible.py index 054508219..23b2eccf8 100644 --- a/kayobe/tests/unit/test_kolla_ansible.py +++ b/kayobe/tests/unit/test_kolla_ansible.py @@ -111,7 +111,7 @@ class TestCase(unittest.TestCase): ".", "/path/to/cwd/venvs/kolla-ansible/bin/activate", "&&", "kolla-ansible", "command", "--playbook", "/path/to/playbook", - "--key", "/path/to/kayobe-vault-password-helper", + "--vault-password-file", "/path/to/kayobe-vault-password-helper", "--inventory", "/path/to/inventory", "--configdir", "/path/to/config", "--passwords", "/path/to/config/passwords.yml", @@ -147,7 +147,7 @@ class TestCase(unittest.TestCase): expected_cmd = [ ".", "/path/to/cwd/venvs/kolla-ansible/bin/activate", "&&", "kolla-ansible", "command", - "--key", "/path/to/vault/pw", + "--vault-password-file", "/path/to/vault/pw", "--inventory", "/etc/kolla/inventory/overcloud", ] expected_cmd = " ".join(expected_cmd) @@ -175,7 +175,7 @@ class TestCase(unittest.TestCase): expected_cmd = [ ".", "/path/to/cwd/venvs/kolla-ansible/bin/activate", "&&", "kolla-ansible", "command", - "--key", "/path/to/kayobe-vault-password-helper", + "--vault-password-file", "/path/to/kayobe-vault-password-helper", "--inventory", "/etc/kolla/inventory/overcloud", ] expected_cmd = " ".join(expected_cmd)