Skip to content

Commit

Permalink
Handle more states
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Font committed Oct 3, 2022
1 parent f49002c commit 044abb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion driver/vcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,12 @@ func (d *Driver) GetState() (state.State, error) {
return state.Running, nil
case "POWERED_OFF":
return state.Stopped, nil
case "MIXED":
return state.Error, nil
case "UNRESOLVED":
return state.Error, nil
default:
log.Warnf("Unknown status: %s", status)
log.Warnf("Unhandled status: %s", status)
}
return state.None, nil
}
Expand Down

0 comments on commit 044abb6

Please sign in to comment.