Skip to content

Commit

Permalink
Merge branch 'release-1.13' into restic-recreate-repo-vel1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyndon-Li authored Feb 20, 2024
2 parents 170fcc5 + 5dd1d3b commit 62a5317
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cmd/cli/repo/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ func NewGetCommand(f client.Factory, use string) *cobra.Command {
crClient, err := f.KubebuilderClient()
cmd.CheckError(err)

var repos *api.BackupRepositoryList
repos := new(api.BackupRepositoryList)
if len(args) > 0 {
repos = new(api.BackupRepositoryList)
for _, name := range args {
repo := new(api.BackupRepository)
err := crClient.Get(context.TODO(), ctrlclient.ObjectKey{Namespace: f.Namespace(), Name: name}, repo)
Expand Down

0 comments on commit 62a5317

Please sign in to comment.