diff --git a/gosuper/gosuper/api.go b/gosuper/gosuper/api.go index 7a5e8113..03f17b3d 100644 --- a/gosuper/gosuper/api.go +++ b/gosuper/gosuper/api.go @@ -124,7 +124,8 @@ func getUnitStatus(unitName string) (state bool, err error) { err = fmt.Errorf("Unable to get unit status: %v", e) return } else { - state = activeState.Value.String() == `"active"` + activeStateStr := activeState.Value.String() + state = activeStateStr != `"inactive"` && activeStateStr != `"deactivating"` return } }