raw update_node procedure

Change-Id: If0ebaf3ad2fb3fdb985d3a78d2a79037e48a2979
This commit is contained in:
Fabio Verboso
2017-02-20 15:49:41 +01:00
parent 41bfe34311
commit ac70869ee9
4 changed files with 38 additions and 59 deletions

View File

@@ -126,6 +126,12 @@ class ConductorEndpoint(object):
return
def update_node(self, ctx, node_obj):
node = serializer.deserialize_entity(ctx, node_obj)
LOG.debug('Updating node %s', node.name)
node.save()
return serializer.serialize_entity(ctx, node)
def create_node(self, ctx, node_obj, location_obj):
new_node = serializer.deserialize_entity(ctx, node_obj)
LOG.debug('Creating node %s',