Fix incorrect status update after resource migration
@@ -255,10 +255,11 @@ func (m *MigrationController) migrateVolumes(migration *storkv1.Migration) error
log.MigrationLog(migration).Errorf("Error migrating resources: %v", err)
return err
}
- }
+ } else {
migration.Status.Stage = storkv1.MigrationStageFinal
migration.Status.Status = storkv1.MigrationStatusSuccessful
}
+ }
err = sdk.Update(migration)
if err != nil {
