Revision b55b9692 snf-cyclades-app/synnefo/api/management/commands/service-export-cyclades.py

b/snf-cyclades-app/synnefo/api/management/commands/service-export-cyclades.py
34 34
from django.utils import simplejson as json
35 35
from django.core.management.base import NoArgsCommand
36 36
from synnefo.cyclades_settings import cyclades_services
37
from synnefo.lib.services import filter_public
37 38

  
38 39

  
39 40
class Command(NoArgsCommand):
40 41
    help = "Export Cyclades services in JSON format."
41 42

  
42 43
    def handle(self, *args, **options):
43
        output = json.dumps(cyclades_services, indent=4)
44
        output = json.dumps(filter_public(cyclades_services), indent=4)
44 45
        self.stdout.write(output + "\n")

Also available in: Unified diff