diff options
author | 2017-02-02 09:33:02 +0200 | |
---|---|---|
committer | 2017-02-02 09:33:02 +0200 | |
commit | 790059069915a700905f4746b22a9a4a6cadc6ad (patch) | |
tree | 34e49ff38941be3057e72a80ca42e804c00944f7 /scripts/automation/trex_control_plane/client_utils | |
parent | 693e822b3779d695677d5bdc55a6b87e359285a9 (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/client_utils')
-rw-r--r-- | scripts/automation/trex_control_plane/client_utils/yaml_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/client_utils/yaml_utils.py b/scripts/automation/trex_control_plane/client_utils/yaml_utils.py index 776a51a7..20a2c587 100644 --- a/scripts/automation/trex_control_plane/client_utils/yaml_utils.py +++ b/scripts/automation/trex_control_plane/client_utils/yaml_utils.py @@ -150,7 +150,7 @@ class CTRexYAMLLoader(object): def load_yaml_to_obj(file_path): try: - return yaml.load(file(file_path, 'r')) + return yaml.safe_load(file(file_path, 'r')) except yaml.YAMLError as e: raise except Exception as e: |