mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 15:21:25 -07:00
Remove redundant 'self.user or' added by 0f91add
This commit is contained in:
parent
bbaf803227
commit
1adb6dfa05
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class Connection(object):
|
||||||
self.common_args += ["-o", "KbdInteractiveAuthentication=no",
|
self.common_args += ["-o", "KbdInteractiveAuthentication=no",
|
||||||
"-o", "PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey",
|
"-o", "PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey",
|
||||||
"-o", "PasswordAuthentication=no"]
|
"-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]
|
self.common_args += ["-o", "ConnectTimeout=%d" % self.runner.timeout]
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue