1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Allow become_ask_pass from config to work (#52590)

This commit is contained in:
Matt Martz 2019-02-19 13:29:37 -06:00 committed by GitHub
parent d01d94c1f9
commit 6746ec6331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -328,8 +328,8 @@ def add_runas_prompt_options(parser, runas_group=None):
runas_group = optparse.OptionGroup(parser, "Privilege Escalation Options", runas_group = optparse.OptionGroup(parser, "Privilege Escalation Options",
"control how and which user you become as on target hosts") "control how and which user you become as on target hosts")
runas_group.add_option('-K', '--ask-become-pass', default=False, dest='become_ask_pass', action='store_true', runas_group.add_option('-K', '--ask-become-pass', dest='become_ask_pass', action='store_true',
help='ask for privilege escalation password') help='ask for privilege escalation password', default=C.DEFAULT_BECOME_ASK_PASS)
parser.add_option_group(runas_group) parser.add_option_group(runas_group)