mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Make the filename the first argument to rekey_file
This commit is contained in:
@@ -128,6 +128,6 @@ class VaultCLI(CLI):
|
||||
__, new_password = self.ask_vault_passwords(ask_vault_pass=False, ask_new_vault_pass=True, confirm_new=True)
|
||||
|
||||
for f in self.args:
|
||||
self.editor.rekey_file(new_password, f)
|
||||
self.editor.rekey_file(f, new_password)
|
||||
|
||||
self.display.display("Rekey successful", stderr=True)
|
||||
|
||||
@@ -336,7 +336,7 @@ class VaultEditor:
|
||||
else:
|
||||
raise AnsibleError("%s is already encrypted" % filename)
|
||||
|
||||
def rekey_file(self, new_password, filename):
|
||||
def rekey_file(self, filename, new_password):
|
||||
|
||||
check_prereqs()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user