Merge "Replaces yaml.load() with yaml.safe_load()"

This commit is contained in:
Jenkins 2017-02-06 01:35:58 +00:00 committed by Gerrit Code Review
commit 917ecfc575

View File

@ -27,7 +27,7 @@ patch_system = mock.patch('storops.UnitySystem')
def load_yaml(file_name): def load_yaml(file_name):
yaml_file = '{}/{}'.format(path.dirname(path.abspath(__file__)), file_name) yaml_file = '{}/{}'.format(path.dirname(path.abspath(__file__)), file_name)
with open(yaml_file) as f: with open(yaml_file) as f:
res = yaml.load(f) res = yaml.safe_load(f)
LOG.debug('Loaded yaml mock objects from %s.', yaml_file) LOG.debug('Loaded yaml mock objects from %s.', yaml_file)
return res return res