(Re #829) Fix for sudo_cmd not defined

pull/831/head
Sundar Raman 12 years ago
parent 9ad91d7369
commit 2f754f0284

@ -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…
Cancel
Save