]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
k8s: Fix 9935 part-2 misspelled reponse instead of response
authorAlain Spineux <alain@baculasystems.com>
Tue, 14 Mar 2023 14:25:26 +0000 (15:25 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
bacula/src/plugins/fd/kubernetes-backend/baculak8s/plugins/kubernetes_plugin.py

index 87b5b65651f8ace17c140e1e947fd563aa5d96d5..e4a556451368a23380e5bdc6afca05c393c030bf 100644 (file)
@@ -339,7 +339,7 @@ class KubernetesPlugin(Plugin):
         # instead of the expected response
         response = self.__execute(lambda: pods_list_namespaced(self.corev1api, namespace, estimate, self.config['labels']))
         if not isinstance(response, dict) or not "error" in response:
-            pods = reponse
+            pods = response
             nrpods = len(pods)
             logging.debug("get_pods[{}]:pods:{}".format(namespace, nrpods))
             self.pods_counter += nrpods