diff options
author | James Cammarata <jimi@sngx.net> | 2014-03-07 00:07:10 -0600 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2014-03-10 15:58:55 -0500 |
commit | ae1e9a3ec1cbe5a150097b92b2d6345ce06a9809 (patch) | |
tree | 99223affacde439a13be5cd19c29f7c20ff0947e | |
parent | 3fc8a83e7986b5da205cedb87d3b1ca948e3db12 (diff) | |
download | ansible-ae1e9a3ec1cbe5a150097b92b2d6345ce06a9809.tar.gz |
Properly wrap logical elements together for su/sudo detection
-rw-r--r-- | lib/ansible/runner/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index f9b7d0a304..1e168e6ebb 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -420,7 +420,7 @@ class Runner(object): environment_string = self._compute_environment_string(inject) - if tmp.find("tmp") != -1 and (self.sudo and self.sudo_user != 'root') or (self.su and self.su_user != 'root'): + if tmp.find("tmp") != -1 and ((self.sudo and self.sudo_user != 'root') or (self.su and self.su_user != 'root')): # deal with possible umask issues once sudo'ed to other user cmd_chmod = "chmod a+r %s" % remote_module_path self._low_level_exec_command(conn, cmd_chmod, tmp, sudoable=False) |