From: francisco.garcia Date: Thu, 14 Dec 2023 08:57:32 +0000 (+0100) Subject: k8s: Fix problem with typo. X-Git-Tag: Beta-15.0.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db7b519b71118362ab5f5f022b5278d234db0c22;p=thirdparty%2Fbacula.git k8s: Fix problem with typo. --- 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 71ae364b8..0b88879c9 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 @@ -59,7 +59,9 @@ CANNOT_REMOVE_VSNAPSHOT_ERR = "Unable to remove volume snapshot {vsnapshot}! Ple 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 `{}`." +FINISHED_PVC_FROM_VSNAPSHOT = "Finished pvc `{}` volume snapshot from pvc `{}`." class JobPodBacula(Job, metaclass=ABCMeta): """ @@ -350,11 +352,12 @@ 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'))) 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))) return None, None - self._io.send_info(VSNAPSHOT_BACKUP_COMPATIBLE_INFO.format(new_pvc.get('name'))) + self._io.send_info(FINISHED_PVC_FROM_VSNAPSHOT.format(new_pvc.get('name'), pvc.get('name'))) return vsnapshot, new_pvc def handle_delete_vsnapshot_backup(self, namespace, vsnapshot, pvcdata):