commit | 6adc16fcd212f4f89a21693130aa5c5c297b1f60 | [log] [tgz] |
---|---|---|
author | Jenkins <jenkins@review.openstack.org> | Fri Jul 17 10:05:14 2015 +0000 |
committer | Gerrit Code Review <review@openstack.org> | Fri Jul 17 10:05:14 2015 +0000 |
tree | 5a1b3c55054cf43625c8cc819df3f6acaf115598 | |
parent | 94131ba8bf5c544fd84607870a47ab2a69631439 [diff] | |
parent | 276a84ce9e2b18888da021c8eed3516882dcbfb1 [diff] |
Merge "Fix list_migration response schema for None values"
diff --git a/tempest/common/accounts.py b/tempest/common/accounts.py index 650faf1..78e0e72 100644 --- a/tempest/common/accounts.py +++ b/tempest/common/accounts.py
@@ -31,8 +31,8 @@ def read_accounts_yaml(path): - yaml_file = open(path, 'r') - accounts = yaml.load(yaml_file) + with open(path, 'r') as yaml_file: + accounts = yaml.load(yaml_file) return accounts