(Re #829) Fix for sudo_cmd not defined
This commit is contained in:
parent
9ad91d7369
commit
2f754f0284
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ class ParamikoConnection(object):
|
|||
prompt = '[sudo via ansible, key=%s] password: ' % randbits
|
||||
sudocmd = 'sudo -k && sudo -p "%s" -u %s -- "$SHELL" -c %s' % (
|
||||
prompt, sudo_user, pipes.quote(cmd))
|
||||
vvv("EXEC %s" % sudo_cmd, host=self.host)
|
||||
vvv("EXEC %s" % sudocmd, host=self.host)
|
||||
sudo_output = ''
|
||||
try:
|
||||
chan.exec_command(sudocmd)
|
||||
|
|
Loading…
Reference in a new issue