From 93fb65aafb8747078165925e3fa2aa7ada4c6a65 Mon Sep 17 00:00:00 2001 From: kgarg-px Date: Fri, 1 Dec 2023 06:25:07 +0000 Subject: [PATCH] pb-4844: Making changes in the way commands are added to jobs, removing unrequired constants from files Signed-off-by: kgarg-px --- pkg/drivers/kopiadelete/kopiadelete.go | 3 +-- pkg/drivers/kopiamaintenance/kopiamaintenance.go | 1 - pkg/kopia/command.go | 11 +++++------ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/pkg/drivers/kopiadelete/kopiadelete.go b/pkg/drivers/kopiadelete/kopiadelete.go index d90a98b12..4d9ff778c 100644 --- a/pkg/drivers/kopiadelete/kopiadelete.go +++ b/pkg/drivers/kopiadelete/kopiadelete.go @@ -19,8 +19,7 @@ import ( ) const ( - kopiaDeleteJobPrefix = "d" - kopiaDebugModeEnabled = "KDMP_KOPIAEXECUTOR_ENABLE_DEBUG_MODE" + kopiaDeleteJobPrefix = "d" ) // Driver is a kopia delete snapshot implementation diff --git a/pkg/drivers/kopiamaintenance/kopiamaintenance.go b/pkg/drivers/kopiamaintenance/kopiamaintenance.go index 7d0c7dad3..d8a6ddfc5 100644 --- a/pkg/drivers/kopiamaintenance/kopiamaintenance.go +++ b/pkg/drivers/kopiamaintenance/kopiamaintenance.go @@ -25,7 +25,6 @@ const ( quickMaintenaceTye = "quick" defaultFailedJobsHistoryLimit = 1 defaultSuccessfulJobsHistoryLimit = 1 - kopiaDebugModeEnabled = "KDMP_KOPIAEXECUTOR_ENABLE_DEBUG_MODE" ) // Driver is a kopia maintenance snapshot implementation diff --git a/pkg/kopia/command.go b/pkg/kopia/command.go index 1d564770a..880856323 100644 --- a/pkg/kopia/command.go +++ b/pkg/kopia/command.go @@ -10,12 +10,11 @@ import ( ) const ( - baseCmd = "kopia" - logDir = "/tmp" - cacheDir = "/tmp" - configFile = "/tmp/kopiaconfig" - kopiaDebugModeEnabled = "KDMP_KOPIAEXECUTOR_ENABLE_DEBUG_MODE" - debug = "debug" + baseCmd = "kopia" + logDir = "/tmp" + cacheDir = "/tmp" + configFile = "/tmp/kopiaconfig" + debug = "debug" ) // Command defines the essential fields required to