Revision 89d091bf snf-cyclades-app/synnefo/quotas/management/commands/resource-export-cyclades.py
b/snf-cyclades-app/synnefo/quotas/management/commands/resource-export-cyclades.py | ||
---|---|---|
40 | 40 |
help = "Export Cyclades resources in JSON format." |
41 | 41 |
|
42 | 42 |
def handle(self, *args, **options): |
43 |
data = {"service": resources.service, |
|
44 |
"resources": resources.resources} |
|
45 |
output = json.dumps(data, indent=4) |
|
43 |
output = json.dumps(resources.resources, indent=4) |
|
46 | 44 |
self.stdout.write(output + "\n") |
Also available in: Unified diff