diff options
Diffstat (limited to 'resources/tools')
-rw-r--r-- | resources/tools/wrk/wrk_traffic_profile_parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/wrk/wrk_traffic_profile_parser.py b/resources/tools/wrk/wrk_traffic_profile_parser.py index 1994b6195d..f59210350b 100644 --- a/resources/tools/wrk/wrk_traffic_profile_parser.py +++ b/resources/tools/wrk/wrk_traffic_profile_parser.py @@ -20,7 +20,7 @@ See LLD for the structure of a wrk traffic profile. from os.path import isfile from pprint import pformat -from yaml import load, YAMLError +from yaml import safe_load, YAMLError from robot.api import logger from resources.tools.wrk.wrk_errors import WrkError @@ -62,7 +62,7 @@ class WrkTrafficProfile: try: with open(self.profile_name, "r") as profile_file: - self.traffic_profile = load(profile_file) + self.traffic_profile = safe_load(profile_file) except IOError as err: raise WrkError( msg=f"An error occurred while opening the file " |