parent
ad94a3a6a2
commit
afa82be019
1 changed files with 2 additions and 2 deletions
|
@ -323,11 +323,11 @@ class CLI(with_metaclass(ABCMeta, object)):
|
||||||
try:
|
try:
|
||||||
if op.ask_pass:
|
if op.ask_pass:
|
||||||
sshpass = getpass.getpass(prompt="SSH password: ")
|
sshpass = getpass.getpass(prompt="SSH password: ")
|
||||||
become_prompt = "%s password[defaults to SSH password]: " % op.become_method.upper()
|
become_prompt = "BECOME password[defaults to SSH password]: "
|
||||||
if sshpass:
|
if sshpass:
|
||||||
sshpass = to_bytes(sshpass, errors='strict', nonstring='simplerepr')
|
sshpass = to_bytes(sshpass, errors='strict', nonstring='simplerepr')
|
||||||
else:
|
else:
|
||||||
become_prompt = "%s password: " % op.become_method.upper()
|
become_prompt = "BECOME password: "
|
||||||
|
|
||||||
if op.become_ask_pass:
|
if op.become_ask_pass:
|
||||||
becomepass = getpass.getpass(prompt=become_prompt)
|
becomepass = getpass.getpass(prompt=become_prompt)
|
||||||
|
|
Loading…
Reference in a new issue