]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
k8s: Fix compilation problem
authorfrancisco.garcia <francisco.garcia@baculasystems.com>
Mon, 18 Dec 2023 11:14:21 +0000 (12:14 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 13 Feb 2024 09:36:03 +0000 (10:36 +0100)
bacula/src/plugins/fd/kubernetes-backend/baculak8s/jobs/job_pod_bacula.py

index 0b88879c989b536f26ca9c61f6c65abddf9e245b..3f2b0d7a238a643c7a8b851ca0a07555745f6edf 100644 (file)
@@ -60,7 +60,7 @@ CANNOT_START_CONNECTIONSERVER = "Cannot start ConnectionServer. Err={}"
 
 VSNAPSHOT_BACKUP_COMPATIBLE_INFO = "The pvc `{}` is compatible with volume snapshot backup. Doing backup with this technology."
 PVC_FROM_SNAPSHOT_CREATED = "The pvc `{}` was created from volume snapshot from pvc `{}`."
-CREATING_PVC_FROM_VSNAPSHOT = "Creating pvc `{}` volume snapshot from pvc `{}`."
+CREATING_PVC_FROM_VSNAPSHOT = "Creating pvc from volume snapshot of pvc `{}`."
 FINISHED_PVC_FROM_VSNAPSHOT = "Finished pvc `{}` volume snapshot from pvc `{}`."
 class JobPodBacula(Job, metaclass=ABCMeta):
     """
@@ -352,7 +352,7 @@ class JobPodBacula(Job, metaclass=ABCMeta):
             self._handle_error(CANNOT_CREATE_VSNAPSHOT_ERR.format(parse_json_descr(vsnapshot)))
             return None, None
         # Create pvc from volume snapshot
-        self._io.send_info(CREATING_PVC_FROM_VSNAPSHOT.format(new_pvc.get('name'), pvc.get('name')))
+        self._io.send_info(CREATING_PVC_FROM_VSNAPSHOT.format(pvc.get('name')))
         new_pvc = self._plugin.create_pvc_from_vsnapshot(namespace, pvc)
         if isinstance(new_pvc, dict) and 'error' in new_pvc:
             self._handle_error(CANNOT_CREATE_PVC_SNAPSHOT_ERR.format(parse_json_descr(new_pvc)))