diff --git a/exp/etcdrestore/controllers/etcdsnapshotrestore_controller.go b/exp/etcdrestore/controllers/etcdsnapshotrestore_controller.go index 118c069f..b32280d4 100644 --- a/exp/etcdrestore/controllers/etcdsnapshotrestore_controller.go +++ b/exp/etcdrestore/controllers/etcdsnapshotrestore_controller.go @@ -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 }