1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove redundant 'self.user or' added by 0f91add

This commit is contained in:
James Cammarata 2014-06-24 10:45:11 -05:00
parent bbaf803227
commit 1adb6dfa05

View file

@ -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