From: francisco.garcia Date: Mon, 18 Dec 2023 11:14:21 +0000 (+0100) Subject: k8s: Fix compilation problem X-Git-Tag: Beta-15.0.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40a95bc60887ebe773254c8561e45bbc240c6903;p=thirdparty%2Fbacula.git k8s: Fix compilation problem --- diff --git a/bacula/src/plugins/fd/kubernetes-backend/baculak8s/jobs/job_pod_bacula.py b/bacula/src/plugins/fd/kubernetes-backend/baculak8s/jobs/job_pod_bacula.py index 0b88879c9..3f2b0d7a2 100644 --- a/bacula/src/plugins/fd/kubernetes-backend/baculak8s/jobs/job_pod_bacula.py +++ b/bacula/src/plugins/fd/kubernetes-backend/baculak8s/jobs/job_pod_bacula.py @@ -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)))