set script command itself to be sudable and not use the chmod sudoable settings as it can

ignore sudo settings for script when become_user is not root
fixes #11902
pull/11916/head
Brian Coca 9 years ago
parent 3d481ab4ff
commit c08305a31f

@ -84,7 +84,7 @@ class ActionModule(ActionBase):
env_string = self._compute_environment_string() env_string = self._compute_environment_string()
script_cmd = ' '.join([env_string, tmp_src, args]) script_cmd = ' '.join([env_string, tmp_src, args])
result = self._low_level_execute_command(cmd=script_cmd, tmp=None, sudoable=sudoable) result = self._low_level_execute_command(cmd=script_cmd, tmp=None, sudoable=True)
# clean up after # clean up after
if tmp and "tmp" in tmp and not C.DEFAULT_KEEP_REMOTE_FILES: if tmp and "tmp" in tmp and not C.DEFAULT_KEEP_REMOTE_FILES:

Loading…
Cancel
Save