Be more pythonic.
This commit is contained in:
parent
7ce9875ed7
commit
04cc4d5510
|
@ -120,8 +120,7 @@ class SSHConfig (object):
|
||||||
|
|
||||||
ret = {}
|
ret = {}
|
||||||
for match in matches:
|
for match in matches:
|
||||||
for key in match['config']:
|
for key, value in match['config'].iteritems():
|
||||||
value = match['config'][key]
|
|
||||||
if key == 'identityfile':
|
if key == 'identityfile':
|
||||||
if key in ret:
|
if key in ret:
|
||||||
ret['identityfile'].extend(value)
|
ret['identityfile'].extend(value)
|
||||||
|
|
Loading…
Reference in New Issue