mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Automatic merge from release/2.2.0 -> release/2.3.0
* commit 'fed89b0db657f39fc4b8908f2edf4382f7e1dcd5':
This commit is contained in:
@@ -69,12 +69,13 @@ type ManagedDiskParameters struct {
|
||||
}
|
||||
|
||||
type DataDisk struct {
|
||||
Lun int32
|
||||
Name string
|
||||
Vhd VirtualHardDisk
|
||||
Caching CachingTypes
|
||||
DiskSizeGB int32
|
||||
ManagedDisk ManagedDiskParameters
|
||||
Lun int32
|
||||
Name string
|
||||
Vhd VirtualHardDisk
|
||||
Caching CachingTypes
|
||||
DiskSizeGB int32
|
||||
CreateOption string
|
||||
ManagedDisk ManagedDiskParameters
|
||||
}
|
||||
|
||||
type StorageProfile struct {
|
||||
@@ -375,7 +376,7 @@ func (region *SRegion) AttachDisk(instanceId, diskId string) error {
|
||||
}
|
||||
dataDisks = append(dataDisks, compute.DataDisk{
|
||||
Lun: &_disk.Lun,
|
||||
CreateOption: compute.DiskCreateOptionTypesAttach,
|
||||
CreateOption: compute.DiskCreateOptionTypes(_disk.CreateOption),
|
||||
ManagedDisk: &compute.ManagedDiskParameters{
|
||||
ID: &_disk.ManagedDisk.ID,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user