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

This commit is contained in:
Jenkins 2017-02-13 19:37:44 +00:00 committed by Gerrit Code Review
commit 86573025b2
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def handle_external_config(params):
with open(params.config) as f:
from migration import config
content = yaml.load(f)
content = yaml.safe_load(f)
if isinstance(content, dict):
for k, v in content.items():
setattr(config, k, v)