]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
kubernetes: Fix missing Unsupported backup level.
authorRadosław Korzeniewski <radoslaw@korzeniewski.net>
Thu, 25 Nov 2021 17:38:50 +0000 (18:38 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:56 +0000 (13:56 +0200)
Fixes #0008231.

bacula/src/plugins/fd/kubernetes-backend/baculak8s/jobs/job.py

index 238d90582826a2d25095c11f35c33e9c3608ab01..8bc6a669d8955bf5c33fa50cc64e83c31ec8a298 100644 (file)
@@ -52,6 +52,9 @@ class Job(metaclass=ABCMeta):
 
     def _start(self, expected_start_packet):
         self._read_start(expected_start_packet, onError=self._abort)
+        if self._params.get('level', 'F') != 'F':
+            logging.error("Unsupported backup level. Doing FULL backup.")
+            self._io.send_warning("Unsupported backup level. Doing FULL backup.")
         self._connect()
         self._io.send_eod()