Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e8b2b5a
)
python3: fix wrk traffic profile YAML load
20/24020/1
author
Dave Wallace
<
[email protected]
>
Mon, 16 Dec 2019 17:13:18 +0000
(17:13 +0000)
committer
Dave Wallace
<
[email protected]
>
Mon, 16 Dec 2019 17:13:18 +0000
(17:13 +0000)
Signed-off-by: Dave Wallace <
[email protected]
>
Change-Id: I3b7493221f3a0378b7f6cb0b0a21e8f18a0cc937
resources/tools/wrk/wrk_traffic_profile_parser.py
patch
|
blob
|
history
diff --git
a/resources/tools/wrk/wrk_traffic_profile_parser.py
b/resources/tools/wrk/wrk_traffic_profile_parser.py
index
1994b61
..
f592103
100644
(file)
--- 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 "