removed uneeded reference to su_user

This commit is contained in:
Brian Coca 2015-03-11 12:33:05 -04:00 committed by James Cammarata
parent 44d9c02ba5
commit a2ff6cd5d0

View file

@ -133,7 +133,7 @@ class ActionModule(object):
xfered = self.runner._transfer_str(conn, tmp, 'source', resultant)
# fix file permissions when the copy is done as a different user
if self.runner.become and self.runner.become_user != 'root' or self.runner.su and self.runner.su_user != 'root':
if self.runner.become and self.runner.become_user != 'root':
self.runner._remote_chmod(conn, 'a+r', xfered, tmp)
# run the copy module