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

No authentication with --syntax-check

This commit is contained in:
schmic 2013-02-07 21:09:45 +01:00
parent dddfeac9c4
commit dd9e3430e4

View file

@ -77,7 +77,7 @@ def main(args):
sshpass = None
sudopass = None
if not options.listhosts:
if not options.listhosts and not options.syntax:
options.ask_pass = options.ask_pass or C.DEFAULT_ASK_PASS
if options.ask_pass:
sshpass = getpass.getpass(prompt="SSH password: ")