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:
parent
dddfeac9c4
commit
dd9e3430e4
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ def main(args):
|
||||||
|
|
||||||
sshpass = None
|
sshpass = None
|
||||||
sudopass = 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
|
options.ask_pass = options.ask_pass or C.DEFAULT_ASK_PASS
|
||||||
if options.ask_pass:
|
if options.ask_pass:
|
||||||
sshpass = getpass.getpass(prompt="SSH password: ")
|
sshpass = getpass.getpass(prompt="SSH password: ")
|
||||||
|
|
Loading…
Reference in a new issue