From 2cbfe20fb1b69d61ede36f5c803ecc111343d698 Mon Sep 17 00:00:00 2001 From: tengqm Date: Tue, 3 Mar 2015 16:31:22 +0800 Subject: [PATCH] RPC layer support to cluster_update We allow updates to name, profile_id, parent, tags and timeout properties and that is ALL. --- senlin/rpc/client.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/senlin/rpc/client.py b/senlin/rpc/client.py index 0b0b0ee14..d08ecb9a0 100644 --- a/senlin/rpc/client.py +++ b/senlin/rpc/client.py @@ -207,10 +207,14 @@ class EngineClient(object): identity=identity, count=count)) - def cluster_update(self, ctxt, identity, profile_id): + def cluster_update(self, ctxt, identity, name=None, profile_id=None, + parent=None, tags=None, timeout=None): return self.call(ctxt, self.make_msg('cluster_update', identity=identity, - profile_id=profile_id)) + name=name, + profile_id=profile_id, + parent=parent, tags=tags, + timeout=timeout)) def cluster_delete(self, ctxt, identity, cast=True): rpc_method = self.cast if cast else self.call