Merge "Use yaml.safe_dump() to prevent unicode errors"

This commit is contained in:
Zuul 2018-01-19 01:13:55 +00:00 committed by Gerrit Code Review
commit fde1053a5a
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ class Shaker(workloadbase.WorkloadBase):
test['time'] = default_time
self.logger.debug("Execution time of each test set to {}".format(test['time']))
with open(fname, 'w') as yaml_file:
yaml_file.write(yaml.dump(data, default_flow_style=False))
yaml_file.write(yaml.safe_dump(data, default_flow_style=False))
def get_uuidlist(self, data):
uuidlist = []