diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-08-03 01:54:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-03 01:54:40 +0000 |
commit | 4f13caca517bd6ff31c0213ec7f9d8809dd4ef3c (patch) | |
tree | 77296c20129fd9f87dd61839934bd5735120b4d2 /api/resources/v1 | |
parent | 7786deb79662368c80386e6eaee4e9bfe12fcd2f (diff) | |
parent | 683fb00d41ed6a0a353cb1738b29216c05cd976e (diff) |
Merge "replace yaml.load with yaml.safe_load"
Diffstat (limited to 'api/resources/v1')
-rw-r--r-- | api/resources/v1/env.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/resources/v1/env.py b/api/resources/v1/env.py index 8943db3d1..8367fa9eb 100644 --- a/api/resources/v1/env.py +++ b/api/resources/v1/env.py @@ -393,7 +393,7 @@ class V1Env(ApiResource): return result_handler(consts.API_ERROR, 'file must be provided') LOG.info('Checking file') - data = yaml.load(pod_file.read()) + data = yaml.safe_load(pod_file.read()) if not isinstance(data, collections.Mapping): return result_handler(consts.API_ERROR, 'invalid yaml file') |