mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
bad hack to maybe fix some corner cases with pbrun custom prompts
This commit is contained in:
parent
d71834d1d2
commit
d5a7cd0efc
1 changed files with 1 additions and 0 deletions
|
@ -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)))
|
becomecmd = '%s %s %s -c "%s -c %s"' % (exe, flags, user, shell, pipes.quote('echo %s; %s' % (success_key, cmd)))
|
||||||
|
|
||||||
elif method == 'pbrun':
|
elif method == 'pbrun':
|
||||||
|
prompt = 'assword:'
|
||||||
exe = exe or 'pbrun'
|
exe = exe or 'pbrun'
|
||||||
flags = flags or ''
|
flags = flags or ''
|
||||||
becomecmd = '%s -b -l %s -u %s "%s"' % (exe, flags, user, pipes.quote('echo %s; %s' % (success_key,cmd)))
|
becomecmd = '%s -b -l %s -u %s "%s"' % (exe, flags, user, pipes.quote('echo %s; %s' % (success_key,cmd)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue