From 4ec1fc58d9cad725733cc26a57fb3848bced2b15 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Thu, 27 Feb 2020 16:51:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=B7=E6=AD=8C=E4=BA=91=E5=BB=BA?= =?UTF-8?q?=E8=AE=AE=E5=85=B3=E6=9C=BA=E4=B8=8B=E8=B0=83=E6=95=B4=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E9=83=A8=E5=88=86linux=E5=BC=80=E6=9C=BA?= =?UTF-8?q?=E4=B9=9F=E8=B0=83=E6=95=B4=E4=B8=8D=E4=BA=86=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/guestdrivers/google.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/compute/guestdrivers/google.go b/pkg/compute/guestdrivers/google.go index 186a5e5173..67fc5da722 100644 --- a/pkg/compute/guestdrivers/google.go +++ b/pkg/compute/guestdrivers/google.go @@ -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) {