mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
Merge pull request #7425 from ioito/automated-cherry-pick-of-#7417-upstream-release-2.13
Automated cherry pick of #7417: fix: avoid lost backend params
This commit is contained in:
@@ -492,7 +492,9 @@ func (manager *SDiskManager) ValidateCreateData(ctx context.Context, userCred mc
|
||||
input.Hypervisor,
|
||||
)
|
||||
} else {
|
||||
diskConfig.Backend = api.STORAGE_LOCAL
|
||||
if len(diskConfig.Backend) == 0 {
|
||||
diskConfig.Backend = api.STORAGE_LOCAL
|
||||
}
|
||||
serverInput, err := ValidateScheduleCreateData(ctx, userCred, input.ToServerCreateInput(), input.Hypervisor)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user