fix: 谷歌云建议关机下调整配置,部分linux开机也调整不了配置

This commit is contained in:
Qu Xuan
2020-02-27 16:53:10 +08:00
parent 54caca2d04
commit 4ec1fc58d9
+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) {