]> git.ipfire.org Git - thirdparty/bacula.git/commit
k8s: Fix #9935 name 'response' is not defined in get_pods()
authorAlain Spineux <alain@baculasystems.com>
Thu, 9 Mar 2023 13:57:14 +0000 (14:57 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
commit0511f6e1d7aa66681101f291d2665417e2b054ec
tree7d61bcd9a2379a3bdbaf27798368b137c5f757c5
parent18bb4bf7608ce2f2e03dc08fa5641f778a2075de
k8s: Fix #9935 name 'response' is not defined in get_pods()

- the previous fix #9727 was buggy, I fixed get_pvcs() but
  broke the "weak" get_pods()
- the problem is that __execute() wrapper intercept exceptions
  and return and error dict() or the expected response when no
  exception are generated
bacula/src/plugins/fd/kubernetes-backend/baculak8s/plugins/kubernetes_plugin.py