From 102de96ebf43d6efad43ff66f9a1ce73f071e237 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sun, 21 Jun 2015 01:24:35 -0400 Subject: [PATCH] avoid password handling when no password is supplied --- lib/ansible/plugins/connections/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/connections/local.py b/lib/ansible/plugins/connections/local.py index 3655cb5b6df..e046dc6c393 100644 --- a/lib/ansible/plugins/connections/local.py +++ b/lib/ansible/plugins/connections/local.py @@ -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 = ''