mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #283 in YUNIONIO/onecloud from ~QUXUAN/onecloud:bugfix/qx-azure-attach-disk to release/2.2.0
* commit 'f702526c238132e101db002eb0529b63b925824f':
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