Merge pull request #370 from sfromm/issue353

Fix for issue 353
This commit is contained in:
Michael DeHaan 2012-05-11 11:55:18 -07:00
commit 87610f2ff0

View file

@ -666,6 +666,9 @@ class Runner(object):
result, err = self._exec_command(conn, cmd, None, sudoable=False)
cleaned = result.split("\n")[0].strip() + '/'
if self.remote_user != 'root':
cmd = 'chmod a+x %s' % cleaned
result, err = self._exec_command(conn, cmd, None, sudoable=False)
return cleaned