summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2017-02-02 09:33:02 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2017-02-02 09:33:02 +0200
commit790059069915a700905f4746b22a9a4a6cadc6ad (patch)
tree34e49ff38941be3057e72a80ca42e804c00944f7 /scripts/automation/trex_control_plane/stl
parent693e822b3779d695677d5bdc55a6b87e359285a9 (diff)
replace yaml.load with yaml.safe_load in several places
Change-Id: I4ba8291acbb56ed3be58ad9bdfa1492892695458 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
index 26613e56..efa450e1 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
@@ -821,7 +821,7 @@ class YAMLLoader(object):
yaml_str = f.read()
try:
- objects = yaml.load(yaml_str)
+ objects = yaml.safe_load(yaml_str)
except yaml.parser.ParserError as e:
raise STLError(str(e))