Minor change in nbi.py to remove unmet condition for the topic 15/15315/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 5 Aug 2025 07:36:10 +0000 (09:36 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 5 Aug 2025 16:37:04 +0000 (18:37 +0200)
Change-Id: I4eaa096e1cafa7ab3e89f18434b628746d425a3b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_nbi/nbi.py

index e67588c..2cddabb 100644 (file)
@@ -1744,14 +1744,8 @@ class Server(object):
                     engine_topic = "resources"
                 elif topic == "app_profiles":
                     engine_topic = "apps"
-                if topic == "clusters" and item == "nodegroup":
+                elif topic == "clusters" and item == "nodegroup":
                     engine_topic = "node_groups"
-            elif main_topic == "k8scluster" and item in (
-                "upgrade",
-                "get_creds",
-                "scale",
-            ):
-                engine_topic = "cluster"
             elif main_topic == "ksu" and engine_topic in ("ksus", "clone", "move"):
                 engine_topic = "ksus"
             if (