mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Resolve su bug in paramiko libs
This commit is contained in:
parent
24f11168d9
commit
4c84ba74b0
2 changed files with 8 additions and 5 deletions
|
@ -191,7 +191,7 @@ class Connection(object):
|
|||
msg += ": %s" % str(e)
|
||||
raise errors.AnsibleConnectionFailed(msg)
|
||||
|
||||
if not self.runner.sudo or not sudoable:
|
||||
if not (self.runner.sudo and sudoable) and not (self.runner.su and su):
|
||||
if executable:
|
||||
quoted_command = executable + ' -c ' + pipes.quote(cmd)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue