mirror of https://github.com/docker/docker-py.git
Avoid an additional level of indentation
This commit is contained in:
parent
2e66ca8a6c
commit
1345da7972
|
|
@ -108,7 +108,7 @@ def load_config(root=None):
|
|||
if not os.path.exists(config_file):
|
||||
return config
|
||||
|
||||
with open(config_file) as f:
|
||||
f = open(config_file)
|
||||
try:
|
||||
config['Configs'] = json.load(f)
|
||||
for k, conf in six.iteritems(config['Configs']):
|
||||
|
|
@ -129,5 +129,7 @@ def load_config(root=None):
|
|||
'Password': pwd,
|
||||
'Email': buf[1]
|
||||
}
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
return config
|
||||
|
|
|
|||
Loading…
Reference in New Issue