Fix paramiko connections to hosts with uppercase characters (#35555)

This commit is contained in:
Nathaniel Case 2018-02-02 10:08:40 -05:00 committed by GitHub
parent f3337e1fba
commit e8755175d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -324,7 +324,7 @@ class Connection(ConnectionBase):
key_filename = os.path.expanduser(self._play_context.private_key_file)
ssh.connect(
self._play_context.remote_addr,
self._play_context.remote_addr.lower(),
username=self._play_context.remote_user,
allow_agent=allow_agent,
look_for_keys=self.get_option('look_for_keys'),