Merge pull request #8056 from ioito/hotfix/qx-google-attach-disk

fix: 仅在可用区故障时可强制挂载磁盘
This commit is contained in:
Zexi Li
2020-09-25 01:40:44 +08:00
committed by GitHub
+1 -1
View File
@@ -783,7 +783,7 @@ func (region *SRegion) AttachDisk(instanceId, diskId string, boot bool) error {
if boot {
body["autoDelete"] = true
}
params := map[string]string{"forceAttach": "true"}
params := map[string]string{}
return region.Do(instanceId, "attachDisk", params, jsonutils.Marshal(body))
}