X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=lib%2Futil.py;fp=lib%2Futil.py;h=9d33aa609d52768fa44aad67b20c5d60566a0362;hb=f577644f99239013d63fc7c200ac2048e92712d5;hp=71fc36b18b54e517c7315ee7d9f42be12c173747;hpb=0793022e37fb0d73e46bcdc0b74a673709508603;p=osm%2FLW-UI.git diff --git a/lib/util.py b/lib/util.py index 71fc36b..9d33aa6 100644 --- a/lib/util.py +++ b/lib/util.py @@ -78,7 +78,7 @@ class Util(object): def json2yaml(cls, object_json): """Converts a json object into a yaml representation""" log.debug('json2yaml') - return yaml.safe_dump(object_json, default_flow_style=False) if not object_json is None else None + return yaml.safe_dump(object_json, default_flow_style=False, indent=2) if not object_json is None else None @classmethod def openfile(cls, filepath, mode='r', buffering=1):