Skip to content

Commit 1e53f90

Browse files
authored
chore(volumesnapshot): correct getBackupVolumeSnapshots parameter typo (cloudnative-pg#7410)
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
1 parent bd6ee38 commit 1e53f90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/reconciler/backup/volumesnapshot/resources.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ func getBackupVolumeSnapshots(
105105
ctx context.Context,
106106
cli client.Client,
107107
namespace string,
108-
backupLabelName string,
108+
backupName string,
109109
) (slice, error) {
110110
var list storagesnapshotv1.VolumeSnapshotList
111111

112112
if err := cli.List(
113113
ctx,
114114
&list,
115115
client.InNamespace(namespace),
116-
client.MatchingLabels{utils.BackupNameLabelName: backupLabelName},
116+
client.MatchingLabels{utils.BackupNameLabelName: backupName},
117117
); err != nil {
118118
return nil, err
119119
}

0 commit comments

Comments
 (0)