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