Skip to content

Commit

Permalink
Use snapshot name as a search key
Browse files Browse the repository at this point in the history
Signed-off-by: Danil-Grigorev <[email protected]>
  • Loading branch information
Danil-Grigorev committed Nov 6, 2024
1 parent 2fc8e89 commit 1b26511
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func initScope(ctx context.Context, c client.Client, etcdSnapshotRestore *snapsh
var machineSnapshot *snapshotrestorev1.ETCDMachineSnapshotFile

for _, snapshot := range etcdMachineSnapshot.Status.Snapshots {
if snapshot.MachineName != etcdSnapshotRestore.Spec.ETCDMachineSnapshotName {
if snapshot.Name != etcdSnapshotRestore.Spec.ETCDMachineSnapshotName {
continue
}

Expand Down

0 comments on commit 1b26511

Please sign in to comment.