Bug 2067 fixed 64/12164/2
authorPedro Escaleira <escaleira@av.it.pt>
Sun, 5 Jun 2022 00:29:57 +0000 (01:29 +0100)
committergarciadav <david.garcia@canonical.com>
Tue, 21 Jun 2022 08:13:23 +0000 (10:13 +0200)
Added the missing resource_name param to the _get_replica_count_instance
method call under the method get_scale_count

Change-Id: Iae2f437b82993dbbf71b80feb5b208f29c8d7083
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
n2vc/k8s_helm_base_conn.py

index ed3ea1c..dd2116c 100644 (file)
@@ -753,7 +753,10 @@ class K8sHelmBaseConnector(K8sConnector):
         )
 
         replicas = await self._get_replica_count_instance(
         )
 
         replicas = await self._get_replica_count_instance(
-            kdu_instance, instance_info["namespace"], paths["kube_config"]
+            kdu_instance=kdu_instance,
+            namespace=instance_info["namespace"],
+            kubeconfig=paths["kube_config"],
+            resource_name=resource_name,
         )
 
         # Get default value if scale count is not found from provided values
         )
 
         # Get default value if scale count is not found from provided values