Bug 2175: K8s-Cluster Update is not implemented
Fix: handle (as agreed) the edit operation.
The update operation does not perform any operation on the K8SCluster.
Change-Id: I8ea45b1479608cdcae2140f1aa3b4cf541b2e643
Signed-off-by: dariofaccin <dario.faccin@canonical.com>
diff --git a/osm_lcm/lcm.py b/osm_lcm/lcm.py
index 6da333c..4bffba9 100644
--- a/osm_lcm/lcm.py
+++ b/osm_lcm/lcm.py
@@ -348,6 +348,13 @@
"k8scluster", k8scluster_id, order_id, "k8scluster_create", task
)
return
+ elif command == "edit" or command == "edited":
+ k8scluster_id = params.get("_id")
+ task = asyncio.ensure_future(self.k8scluster.edit(params, order_id))
+ self.lcm_tasks.register(
+ "k8scluster", k8scluster_id, order_id, "k8scluster_edit", task
+ )
+ return
elif command == "delete" or command == "deleted":
k8scluster_id = params.get("_id")
task = asyncio.ensure_future(self.k8scluster.delete(params, order_id))