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

avoid password handling when no password is supplied

This commit is contained in:
Brian Coca 2015-06-21 01:24:35 -04:00
parent 3bad03d57a
commit 102de96ebf

View file

@ -75,7 +75,7 @@ class Connection(ConnectionBase):
)
debug("done running command with Popen()")
if self.prompt:
if self.prompt and self._connection_info.become_pass:
fcntl.fcntl(p.stdout, fcntl.F_SETFL, fcntl.fcntl(p.stdout, fcntl.F_GETFL) | os.O_NONBLOCK)
fcntl.fcntl(p.stderr, fcntl.F_SETFL, fcntl.fcntl(p.stderr, fcntl.F_GETFL) | os.O_NONBLOCK)
become_output = ''