Fix the string_to_dict method
Change-Id: Iefdb0fdaf1ed93707d562f434e1ad7e9ef6f0cc6
This commit is contained in:
parent
e85a5605b2
commit
0e77bbef1a
@ -44,7 +44,7 @@ class PerfKit(base.WorkloadBase):
|
||||
def string_to_dict(self, string):
|
||||
"""Function for converting "|" quoted hash data into python dictionary."""
|
||||
dict_data = {}
|
||||
split_data = '|,|'.split()
|
||||
split_data = string.split('|,|')
|
||||
split_data[0] = split_data[0][1:]
|
||||
split_data[-1] = split_data[-1][:-1]
|
||||
for item in split_data:
|
||||
|
Loading…
Reference in New Issue
Block a user