mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: azure重装系统删除不必要的参数
This commit is contained in:
@@ -839,6 +839,7 @@ func (region *SRegion) ReplaceSystemDisk(instance *SInstance, cpu int, memoryMb
|
||||
instance.Properties.StorageProfile.OsDisk.Name = ""
|
||||
instance.Properties.ProvisioningState = ""
|
||||
instance.Properties.InstanceView = nil
|
||||
instance.Properties.VmId = ""
|
||||
err = region.client.Update(jsonutils.Marshal(instance), nil)
|
||||
if err != nil {
|
||||
// 更新失败,需要删除之前交换过的系统盘
|
||||
|
||||
Reference in New Issue
Block a user