Skip to content

Commit 261c7ae

Browse files
committed
fix add hosts method in Connection
1 parent ac4798c commit 261c7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssh_utilities/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def add_hosts(cls, hosts: Union["_HOSTS", List["_HOSTS"]]):
244244
if not isinstance(h["identityfile"], list):
245245
h["identityfile"] = [h["identityfile"]]
246246

247-
cls.available_hosts.update({h: h["hostname"] for h in hosts})
247+
cls.available_hosts.update({h["hostname"]: h for h in hosts})
248248

249249
@classmethod
250250
def from_str(cls, string: str, quiet: bool = False

0 commit comments

Comments
 (0)