Skip to content

Commit

Permalink
Merge pull request dcos#355 from mellenburg/fix_add_config
Browse files Browse the repository at this point in the history
Fix incorrect syntax
  • Loading branch information
alberts committed Jul 18, 2016
2 parents bd261a6 + 23473b8 commit 8fae8a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_util/installer_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ def genconf(
else:
test_config['exhibitor_storage_backend'] = 'static'
if add_config_path:
with open(add_config_path, 'r'):
add_config = yaml.load(add_config_path)
with open(add_config_path, 'r') as fh:
add_config = yaml.load(fh)
test_config.update(add_config)
with open('config.yaml', 'w') as config_fh:
config_fh.write(yaml.dump(test_config))
Expand Down

0 comments on commit 8fae8a8

Please sign in to comment.