summaryrefslogtreecommitdiffstats
path: root/utils/lab-reconfiguration/reconfigUcsNet.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-09-13 06:46:56 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-13 06:46:56 +0000
commitbc6b02a4f9298d8b97a6c5e2c7394c4c6d7f2d95 (patch)
tree7c0762865ac50aa1fa5c518512ea2a818de701fe /utils/lab-reconfiguration/reconfigUcsNet.py
parent9b908a6c0f4d7b02e04b2dc85aea7543928c4c33 (diff)
parent149d3c385e7a58113ebbcae8d3a2c261aa840b3f (diff)
Merge "Implements use of yaml.safe_load as per sec audit"
Diffstat (limited to 'utils/lab-reconfiguration/reconfigUcsNet.py')
-rwxr-xr-xutils/lab-reconfiguration/reconfigUcsNet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lab-reconfiguration/reconfigUcsNet.py b/utils/lab-reconfiguration/reconfigUcsNet.py
index 45a72a398..4c08f3dc9 100755
--- a/utils/lab-reconfiguration/reconfigUcsNet.py
+++ b/utils/lab-reconfiguration/reconfigUcsNet.py
@@ -157,7 +157,7 @@ def read_yaml_file(yamlFile):
"""
# TODO: add check if vnic templates specified in file exist on UCS
with open(yamlFile, 'r') as stream:
- return yaml.load(stream)
+ return yaml.safe_load(stream)
def set_network(handle=None, yamlFile=None):