Skip to content

Commit

Permalink
Pass in copy of BSL to BackupStoreGetter to avoid spec changes
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Seago <[email protected]>
  • Loading branch information
sseago committed Jul 14, 2022
1 parent eaf97e7 commit f6e8fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/backup_storage_location_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (r *BackupStorageLocationReconciler) Reconcile(ctx context.Context, req ctr
}
}()

backupStore, err := r.BackupStoreGetter.Get(&location, pluginManager, log)
backupStore, err := r.BackupStoreGetter.Get(location.DeepCopy(), pluginManager, log)
if err != nil {
log.WithError(err).Error("Error getting a backup store")
return
Expand Down

0 comments on commit f6e8fee

Please sign in to comment.