Skip to content

Commit

Permalink
Domain is not expected to be paused or pmsuspended.
Browse files Browse the repository at this point in the history
If this happens, this is treated as an error. The user did probably
something with the VM manually.
  • Loading branch information
guillaumerose committed May 7, 2021
1 parent c169129 commit f658159
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/libvirt/libvirt.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,8 @@ func (d *Driver) GetState() (state.State, error) {
switch virState {
case libvirt.DOMAIN_RUNNING:
return state.Running, nil
case libvirt.DOMAIN_PAUSED:
return state.Paused, nil
case libvirt.DOMAIN_SHUTDOWN:
return state.Stopped, nil
case libvirt.DOMAIN_PMSUSPENDED:
return state.Saved, nil
case libvirt.DOMAIN_SHUTOFF:
return state.Stopped, nil
}
Expand Down

0 comments on commit f658159

Please sign in to comment.