summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
e8b2b5a)
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Change-Id: I3b7493221f3a0378b7f6cb0b0a21e8f18a0cc937
from os.path import isfile
from pprint import pformat
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
from robot.api import logger
from resources.tools.wrk.wrk_errors import WrkError
try:
with open(self.profile_name, "r") as profile_file:
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 "
except IOError as err:
raise WrkError(
msg=f"An error occurred while opening the file "