Revision d9a7f0bb snf-astakos-app/astakos/im/management/commands/service-import.py
b/snf-astakos-app/astakos/im/management/commands/service-import.py | ||
---|---|---|
73 | 73 |
self.add_services(data) |
74 | 74 |
|
75 | 75 |
def add_services(self, data): |
76 |
write = self.stdout.write
|
|
76 |
write = self.stderr.write
|
|
77 | 77 |
output = [] |
78 | 78 |
for name, service_dict in data.iteritems(): |
79 | 79 |
try: |
... | ... | |
91 | 91 |
|
92 | 92 |
try: |
93 | 93 |
existed = add_service(component, name, service_type, endpoints, |
94 |
out=self.stdout)
|
|
94 |
out=self.stderr)
|
|
95 | 95 |
except RegisterException as e: |
96 | 96 |
raise CommandError(e.message) |
97 | 97 |
|
Also available in: Unified diff