diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2015-04-14 12:44:04 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2015-04-15 11:18:02 -0400 |
commit | ea9db2a0ccc64c9415e5a9f5a9486effe6ec2494 (patch) | |
tree | 27a6c294aedea69957fc102555b0f09b261d08a8 | |
parent | 2e5bad3385defe4efd8f28e9345b2bf872e6be64 (diff) | |
download | ansible-ea9db2a0ccc64c9415e5a9f5a9486effe6ec2494.tar.gz |
bad hack to maybe fix some corner cases with pbrun custom prompts
-rw-r--r-- | lib/ansible/utils/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
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))) |