Make ssh_config paramiko 1.12/1.13 compatible

This commit is contained in:
Henry Finucane 2014-03-26 17:34:04 -07:00
parent cf434df6a4
commit 7626eacc7a

View file

@ -63,7 +63,8 @@ def get_config():
for d in cfg._config:
_copy = dict(d)
del _copy['host']
ret_dict[d['host']] = _copy
for host in d['host']:
ret_dict[host] = _copy['config']
return ret_dict