]> git.ipfire.org Git - thirdparty/bacula.git/commit
k8s: Fix #9727 NoneType object is not subscriptable
authorAlain Spineux <alain@baculasystems.com>
Thu, 8 Dec 2022 09:31:17 +0000 (10:31 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:00 +0000 (13:57 +0200)
commit901668010792c054cc3cedfc5c4201bd4d8adbd9
treec2329c46e2c0c7f8fb4124a0c54566219d05b818
parent26882449af4f5a8ae8f8b49c0228209014bb9b2c
k8s: Fix #9727 NoneType object is not subscriptable

- the code for get_pvcs() has changed and expect a tuple instead
  of a dictionary
- also change get_pods() that don't handle error correctly
- the upstream code can handle a missing self.k8s['pvcs']
  and will handle better pvcs_counter=0 and pods_counter=0 than
  with an invalid value
bacula/src/plugins/fd/kubernetes-backend/baculak8s/plugins/kubernetes_plugin.py