Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #42 from dochang/pass-args
Browse files Browse the repository at this point in the history
* pass-args:
  Pass `ask_vault_pass` and `become_method` to `utils.ask_passwords`.
  • Loading branch information
spencergibb committed Nov 5, 2015
2 parents 3311fd3 + 24d8a74 commit 77068d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/battleschool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def main(args, battleschool_dir=None):
if not options.listhosts and not options.syntax and not options.listtasks:
options.ask_pass = AC.DEFAULT_ASK_PASS
options.ask_sudo_pass = options.ask_sudo_pass or AC.DEFAULT_ASK_SUDO_PASS
passwds = utils.ask_passwords(ask_pass=options.ask_pass, become_ask_pass=options.ask_sudo_pass)
options.become_method = options.become_method or AC.DEFAULT_BECOME_METHOD
passwds = utils.ask_passwords(ask_pass=options.ask_pass, become_ask_pass=options.ask_sudo_pass, ask_vault_pass=options.ask_vault_pass, become_method=options.become_method)
sshpass = passwds[0]
sudopass = passwds[1]
vault_pass = passwds[2]
Expand Down

0 comments on commit 77068d3

Please sign in to comment.