Specify full path to sudo

This commit is contained in:
James Slagle 2013-09-27 07:48:39 -04:00
parent f2be320c76
commit 7bcf0e2ea9
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class ElementManager(object):
if not self.dry_run:
# environment must be preseverd so that the variables set
# earlier in os.environ are available in the scripts.
rc = call(['sudo', '-E', '/bin/bash', script])
rc = call(['/bin/sudo', '-E', '/bin/bash', script])
if rc != 0:
logging.error("scripted failed: %s" % script)
if self.interactive: