Skip to content

Commit

Permalink
pb-4844: Making changes in the way commands are added to jobs, removi…
Browse files Browse the repository at this point in the history
…ng unrequired constants from files

Signed-off-by: kgarg-px <[email protected]>
  • Loading branch information
kgarg-px committed Dec 1, 2023
1 parent 4841978 commit 93fb65a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions pkg/drivers/kopiadelete/kopiadelete.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import (
)

const (
kopiaDeleteJobPrefix = "d"
kopiaDebugModeEnabled = "KDMP_KOPIAEXECUTOR_ENABLE_DEBUG_MODE"
kopiaDeleteJobPrefix = "d"
)

// Driver is a kopia delete snapshot implementation
Expand Down
1 change: 0 additions & 1 deletion pkg/drivers/kopiamaintenance/kopiamaintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const (
quickMaintenaceTye = "quick"
defaultFailedJobsHistoryLimit = 1
defaultSuccessfulJobsHistoryLimit = 1
kopiaDebugModeEnabled = "KDMP_KOPIAEXECUTOR_ENABLE_DEBUG_MODE"
)

// Driver is a kopia maintenance snapshot implementation
Expand Down
11 changes: 5 additions & 6 deletions pkg/kopia/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93fb65a

Please sign in to comment.