def print_definitions(d, base_url): fill_endpoints(d, base_url) print json.dumps(filter_public(d), indent=4)
def handle(self, *args, **options): output = json.dumps(filter_public(cyclades_services), indent=4) self.stdout.write(output + "\n")