summaryrefslogtreecommitdiff
path: root/lib/ansible/runner
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2014-06-24 10:45:11 -0500
committerJames Cammarata <jimi@sngx.net>2014-06-24 10:45:38 -0500
commit1adb6dfa051498b70ac34b4ac12524952c126149 (patch)
tree8252fcd4d2932716d1fea67e6b039dee90d63d39 /lib/ansible/runner
parentbbaf80322711a23dfd1ea0b85fa84e61aa9db200 (diff)
downloadansible-1adb6dfa051498b70ac34b4ac12524952c126149.tar.gz
Remove redundant 'self.user or' added by 0f91add
Diffstat (limited to 'lib/ansible/runner')
-rw-r--r--lib/ansible/runner/connection_plugins/ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/runner/connection_plugins/ssh.py b/lib/ansible/runner/connection_plugins/ssh.py
index bddbd88af3..ca6fdb3a6f 100644
--- a/lib/ansible/runner/connection_plugins/ssh.py
+++ b/lib/ansible/runner/connection_plugins/ssh.py
@@ -94,7 +94,7 @@ class Connection(object):
self.common_args += ["-o", "KbdInteractiveAuthentication=no",
"-o", "PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey",
"-o", "PasswordAuthentication=no"]
- self.common_args += ["-o", "User=" + (self.user or self.user or pwd.getpwuid(os.geteuid())[0])]
+ self.common_args += ["-o", "User=" + (self.user or pwd.getpwuid(os.geteuid())[0])]
self.common_args += ["-o", "ConnectTimeout=%d" % self.runner.timeout]
return self