Revision 4220c336 snf-astakos-app/astakos/scripts/snf_service_export.py

b/snf-astakos-app/astakos/scripts/snf_service_export.py
1 1
import os
2 2
os.environ['DJANGO_SETTINGS_MODULE'] = 'synnefo.settings'
3
import sys
3 4
from optparse import OptionParser
4 5
from synnefo.lib.services import fill_endpoints, filter_public
5 6
from django.utils import simplejson as json
......
303 304
    try:
304 305
        services = definitions[component]
305 306
    except KeyError:
306
        print "Unrecognized component %s" % component
307
        print >> sys.stderr, "Unrecognized component %s" % component
307 308
        exit(1)
308 309
    base_url = args[1]
309 310
    print_definitions(services, base_url)

Also available in: Unified diff