From aede9f08dba8c5f88a869dca2ed9b1bc7f5ae35e Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 18 Jun 2015 10:05:23 -0400 Subject: [PATCH] fixed case in which prompt was None --- lib/ansible/plugins/connections/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/connections/__init__.py b/lib/ansible/plugins/connections/__init__.py index 8e4841225c6..6515f62dcc4 100644 --- a/lib/ansible/plugins/connections/__init__.py +++ b/lib/ansible/plugins/connections/__init__.py @@ -130,7 +130,9 @@ class ConnectionBase(with_metaclass(ABCMeta, object)): return self.success_key in output def check_password_prompt(self, output): - if isinstance(self.prompt, basestring): + if self.prompt in None: + return True + elif isinstance(self.prompt, basestring): return output.endswith(self.prompt) else: return self.prompt(output)