mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 15:41:22 -07:00
Fix comments and error message
This commit is contained in:
parent
58feee0f45
commit
99a339fa7b
2 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ def execute_decrypt(args, options, parser):
|
||||||
def execute_edit(args, options, parser):
|
def execute_edit(args, options, parser):
|
||||||
|
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
raise errors.AnsibleError("create does not accept more than one filename")
|
raise errors.AnsibleError("edit does not accept more than one filename")
|
||||||
|
|
||||||
if not options.password_file:
|
if not options.password_file:
|
||||||
password, new_password = utils.ask_vault_passwords(ask_vault_pass=True)
|
password, new_password = utils.ask_vault_passwords(ask_vault_pass=True)
|
||||||
|
|
|
@ -266,7 +266,7 @@ class VaultEditor(object):
|
||||||
_, tmp_path = tempfile.mkstemp()
|
_, tmp_path = tempfile.mkstemp()
|
||||||
self.write_data(dec_data, tmp_path)
|
self.write_data(dec_data, tmp_path)
|
||||||
|
|
||||||
# drop the user into vim on the tmp file
|
# drop the user into pager on the tmp file
|
||||||
call(self._pager_shell_command(tmp_path))
|
call(self._pager_shell_command(tmp_path))
|
||||||
os.remove(tmp_path)
|
os.remove(tmp_path)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue