Fix function name

pull/6058/head
James Tanner 11 years ago
parent 3fc87e011b
commit aa46ab1d86

@ -112,7 +112,7 @@ def execute_create(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("create does not accept more than one filename")
password, new_password = utils.ask_vaultpasswords(ask_vault_pass=True, confirm_vault=True) password, new_password = utils.ask_vault_passwords(ask_vault_pass=True, confirm_vault=True)
this_vault = _get_vault(args[0], options, password) this_vault = _get_vault(args[0], options, password)
if not hasattr(options, 'cipher'): if not hasattr(options, 'cipher'):
@ -121,7 +121,7 @@ def execute_create(args, options, parser):
def execute_decrypt(args, options, parser): def execute_decrypt(args, options, parser):
password, new_password = utils.ask_vaultpasswords(ask_vault_pass=True) password, new_password = utils.ask_vault_passwords(ask_vault_pass=True)
for f in args: for f in args:
this_vault = _get_vault(f, options, password) this_vault = _get_vault(f, options, password)
@ -134,7 +134,7 @@ 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("create does not accept more than one filename")
password, new_password = utils.ask_vaultpasswords(ask_vault_pass=True) password, new_password = utils.ask_vault_passwords(ask_vault_pass=True)
for f in args: for f in args:
this_vault = _get_vault(f, options, password) this_vault = _get_vault(f, options, password)
@ -142,7 +142,7 @@ def execute_edit(args, options, parser):
def execute_encrypt(args, options, parser): def execute_encrypt(args, options, parser):
password, new_password = utils.ask_vaultpasswords(ask_vault_pass=True, confirm_vault=True) password, new_password = utils.ask_vault_passwords(ask_vault_pass=True, confirm_vault=True)
for f in args: for f in args:
this_vault = _get_vault(f, options, password) this_vault = _get_vault(f, options, password)
@ -154,7 +154,7 @@ def execute_encrypt(args, options, parser):
def execute_rekey(args, options, parser): def execute_rekey(args, options, parser):
password, new_password = utils.ask_vaultpasswords(ask_vault_pass=True, ask_new_vault_pass=True, confirm_new=True) password, new_password = utils.ask_vault_passwords(ask_vault_pass=True, ask_new_vault_pass=True, confirm_new=True)
for f in args: for f in args:
this_vault = _get_vault(f, options, password) this_vault = _get_vault(f, options, password)

@ -763,7 +763,7 @@ def base_parser(constants=C, usage="", output_opts=False, runas_opts=False,
return parser return parser
def ask_vaultpasswords(ask_vault_pass=False, ask_new_vault_pass=False, confirm_vault=False, confirm_new=False): def ask_vault_passwords(ask_vault_pass=False, ask_new_vault_pass=False, confirm_vault=False, confirm_new=False):
vault_pass = None vault_pass = None
new_vault_pass = None new_vault_pass = None

Loading…
Cancel
Save