Merge pull request #4862 from ioito/hotfix/qx-openstack-change-config

fix: 仅kvm需要去判断是否需要关机调整配置,公有云私有云默认不需要
This commit is contained in:
yunion-ci-robot
2020-01-14 02:59:01 +08:00
committed by GitHub
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -148,7 +148,3 @@ func (self *SAzureGuestDriver) GetLinuxDefaultAccount(desc cloudprovider.SManage
func (self *SAzureGuestDriver) IsSupportedBillingCycle(bc billing.SBillingCycle) bool {
return false
}
func (self *SAzureGuestDriver) NeedStopForChangeSpec(guest *models.SGuest, cpuChanged, memChanged bool) bool {
return false
}
+1 -1
View File
@@ -267,7 +267,7 @@ func (self *SBaseGuestDriver) RequestAssociateEip(ctx context.Context, userCred
}
func (self *SBaseGuestDriver) NeedStopForChangeSpec(guest *models.SGuest, cpuChanged, memChanged bool) bool {
return true
return false
}
func (self *SBaseGuestDriver) RemoteDeployGuestForCreate(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, host *models.SHost, desc cloudprovider.SManagedVMCreateConfig) (jsonutils.JSONObject, error) {