working on client v2: projects and instances
[osm/LW-UI.git] / lib / util.py
index 71fc36b..9d33aa6 100644 (file)
@@ -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):