mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #402 from denen99/devel
updated connection.py to have the same interface for exec_command on both LocalConnection and ParamikoConnection classes
This commit is contained in:
commit
7302b7bbc4
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ class LocalConnection(object):
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def exec_command(self, cmd, tmp_path, sudoable=False):
|
def exec_command(self, cmd, tmp_path,sudo_user,sudoable=False):
|
||||||
''' run a command on the local host '''
|
''' run a command on the local host '''
|
||||||
if self.runner.sudo and sudoable:
|
if self.runner.sudo and sudoable:
|
||||||
cmd = "sudo -s %s" % cmd
|
cmd = "sudo -s %s" % cmd
|
||||||
|
|
Loading…
Reference in a new issue