Skip to content
This repository was archived by the owner on Jan 30, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/ssh_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def lookup(self, hostname):

ret = {}
for match in matches:
for key, value in match['config'].iteritems():
for key, value in match['config'].items():
if key not in ret:
# Create a copy of the original value,
# else it will reference the original list
Expand Down Expand Up @@ -631,7 +631,7 @@ def dump(self):
file_content += host_item.get("value") + "\n"
continue
host_item_content = "Host {0}\n".format(host_item.get("host"))
for key, value in host_item.get("options").iteritems():
for key, value in host_item.get("options").items():
if key in replacements:
key = replacements[key]
if isinstance(value, list):
Expand Down