diff options
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: |