mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): validate spec volume panic (#20294)
This commit is contained in:
@@ -224,7 +224,7 @@ func (m *SContainerManager) ValidateSpecVolumeMount(ctx context.Context, userCre
|
||||
}
|
||||
vm, err = drv.ValidateCreateData(ctx, userCred, pod, vm)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "validate %s create data", vm.Type)
|
||||
return nil, errors.Wrapf(err, "validate %s create data", drv.GetType())
|
||||
}
|
||||
return vm, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user