Skip to content

Commit

Permalink
fix(ksyun): vm status
Browse files Browse the repository at this point in the history
  • Loading branch information
ioito committed Dec 16, 2024
1 parent da85bbf commit 120c8e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/multicloud/ksyun/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ func (ins *SInstance) GetStatus() string {
switch ins.InstanceState.Name {
case "active":
return api.VM_RUNNING
case "stopped":
return api.VM_READY
}
return ins.InstanceState.Name
}
Expand Down

0 comments on commit 120c8e5

Please sign in to comment.