Commit 9410f3da authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

astakos: Fix service update

When registering a service that already exists, update its attributes.
parent 29f915b1
......@@ -141,9 +141,8 @@ def add_service(component, name, service_type, endpoints):
(name, service.component.name))
raise RegisterException(m)
service.endpoints.all().delete()
else:
service.component = component
service.type = service_type
for key, value in defaults.iteritems():
setattr(service, key, value)
service.save()
for endpoint in endpoints:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment