From 044abb63830a05dbc64b28d13428ce0fe146bd5b Mon Sep 17 00:00:00 2001 From: Juan Font Date: Mon, 3 Oct 2022 09:28:01 +0000 Subject: [PATCH] Handle more states --- driver/vcd.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/driver/vcd.go b/driver/vcd.go index 5a2f747..385b3b5 100644 --- a/driver/vcd.go +++ b/driver/vcd.go @@ -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 }