Skip to content

Commit

Permalink
Merge pull request #6667 from Lyndon-Li/issue-fix-6662
Browse files Browse the repository at this point in the history
Fix issue 6662
  • Loading branch information
reasonerjt authored Aug 17, 2023
2 parents 30e54b0 + dac2808 commit 5e13f81
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/util/output/backup_describer.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func DescribeBackupSpec(d *Describer, spec velerov1api.BackupSpec) {
d.Printf("Velero-Native Snapshot PVs:\t%s\n", BoolPointerString(spec.SnapshotVolumes, "false", "true", "auto"))
d.Printf("Snapshot Move Data:\t%s\n", BoolPointerString(spec.SnapshotMoveData, "false", "true", "auto"))
if len(spec.DataMover) == 0 {
s = emptyDisplay
s = defaultDataMover
} else {
s = spec.DataMover
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/util/output/backup_describer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Storage Location: backup-location
Velero-Native Snapshot PVs: auto
Snapshot Move Data: auto
Data Mover: <none>
Data Mover: velero
TTL: 0s
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/util/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import (
const (
downloadRequestTimeout = 30 * time.Second
emptyDisplay = "<none>"
defaultDataMover = "velero"
)

// BindFlags defines a set of output-specific flags within the provided
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/util/output/schedule_describe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Backup Template:
Velero-Native Snapshot PVs: auto
Snapshot Move Data: auto
Data Mover: <none>
Data Mover: velero
TTL: 0s
Expand Down Expand Up @@ -86,7 +86,7 @@ Backup Template:
Velero-Native Snapshot PVs: auto
Snapshot Move Data: auto
Data Mover: <none>
Data Mover: velero
TTL: 0s
Expand Down

0 comments on commit 5e13f81

Please sign in to comment.