mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Merge pull request #3347 from ioito/hotfix/qx-guest-status-sync
fix: 更正stopping状态
This commit is contained in:
@@ -20,6 +20,7 @@ import (
|
||||
|
||||
const (
|
||||
CloudVMStatusRunning = "running"
|
||||
CloudVMStatusStopping = "stopping"
|
||||
CloudVMStatusSuspend = "suspend"
|
||||
CloudVMStatusStopped = "stopped"
|
||||
CloudVMStatusChangeFlavor = "change_flavor"
|
||||
|
||||
@@ -666,7 +666,7 @@ func (self *SManagedVirtualizedGuestDriver) RequestSyncstatusOnHost(ctx context.
|
||||
case api.VM_STARTING:
|
||||
status = cloudprovider.CloudVMStatusStopped
|
||||
case api.VM_STOPPING:
|
||||
status = cloudprovider.CloudVMStatusRunning
|
||||
status = cloudprovider.CloudVMStatusStopping
|
||||
case api.VM_CHANGE_FLAVOR:
|
||||
status = cloudprovider.CloudVMStatusChangeFlavor
|
||||
case api.VM_DEPLOYING:
|
||||
|
||||
@@ -514,7 +514,7 @@ func (self *SInstance) GetStatus() string {
|
||||
case "running":
|
||||
return api.VM_RUNNING
|
||||
case "stopping":
|
||||
return api.VM_START_STOP
|
||||
return api.VM_STOPPING
|
||||
case "starting":
|
||||
return api.VM_STARTING
|
||||
case "deleting":
|
||||
|
||||
Reference in New Issue
Block a user