[mod] mustache is a bit stupid, modify js to match its lameness

This commit is contained in:
Laurent Peuch 2015-10-02 21:15:33 -04:00
parent fd81c0950d
commit e7fd25c82e

View file

@ -729,9 +729,14 @@ def app_debug(app):
manifest = json.loads(f.read()) manifest = json.loads(f.read())
return { return {
'name': manifest['name'], 'name': manifest['id'],
'services_logs': [{ 'label': manifest['name'],
x: service_log(x), 'services': [{
"name": x,
"logs": [{
"file_name": y,
"file_content": "\n".join(z),
} for (y, z) in sorted(service_log(x).items(), key=lambda x: x[0])],
} for x in sorted(manifest.get("services", []))] } for x in sorted(manifest.get("services", []))]
} }