Merge pull request #5276 from ioito/automated-cherry-pick-of-#5275-upstream-release-3.1

Automated cherry pick of #5275: fix: 谷歌云建议关机下调整配置,部分linux开机也调整不了配置
This commit is contained in:
yunion-ci-robot
2020-02-28 09:34:19 +08:00
committed by GitHub
+1 -5
View File
@@ -102,11 +102,7 @@ func (self *SGoogleGuestDriver) GetRebuildRootStatus() ([]string, error) {
}
func (self *SGoogleGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]string, error) {
// Google Windows Server not support change config when vm running
if strings.ToLower(guest.OsType) == strings.ToLower(osprofile.OS_TYPE_WINDOWS) {
return []string{api.VM_READY}, nil
}
return []string{api.VM_READY, api.VM_RUNNING}, nil
return []string{api.VM_READY}, nil
}
func (self *SGoogleGuestDriver) GetDeployStatus() ([]string, error) {