From d5a7cd0efceb51f509a4d2619e4d54f4726233ad Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 14 Apr 2015 12:44:04 -0400 Subject: [PATCH] bad hack to maybe fix some corner cases with pbrun custom prompts --- lib/ansible/utils/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index 07e8174893..7ed07a54c8 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -1250,6 +1250,7 @@ def make_become_cmd(cmd, user, shell, method, flags=None, exe=None): becomecmd = '%s %s %s -c "%s -c %s"' % (exe, flags, user, shell, pipes.quote('echo %s; %s' % (success_key, cmd))) elif method == 'pbrun': + prompt = 'assword:' exe = exe or 'pbrun' flags = flags or '' becomecmd = '%s -b -l %s -u %s "%s"' % (exe, flags, user, pipes.quote('echo %s; %s' % (success_key,cmd)))