Fix compat with pyYaml 5.1

the changed the output style default from None to False

Fixes #1908
This commit is contained in:
Stephan Kulow 2019-03-20 08:08:26 +01:00
parent bb48831eca
commit e48e0b4750

View File

@ -737,7 +737,7 @@ class StagingAPI(object):
description = root.find('description')
# Order the requests and replace it with yaml
meta['requests'] = sorted(meta.get('requests', []), key=lambda x: x['id'])
yaml_new = yaml.dump(meta)
yaml_new = yaml.dump(meta, default_flow_style=None)
if yaml_new == description.text:
return
description.text = yaml_new