Skip to content

Commit 700ad7b

Browse files
author
Gabriel Monroy
committed
fix(state): print inactive states without substates
1 parent 0dcd5a0 commit 700ad7b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

client/state.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ func waitForJobStates(jobs []string, check *stateCheck) error {
8181
return nil
8282
}
8383
// otherwise print output
84-
if state.sub == "" || state.sub == "dead" {
85-
fmt.Printf("\033[0;33m%v:\033[0m %v, %v \r",
86-
state.name, state.loaded, state.active)
84+
if state.loaded == "inactive" {
85+
fmt.Printf("\033[0;33m%v:\033[0m %v \r",
86+
state.name, state.loaded)
8787
} else {
8888
fmt.Printf("\033[0;33m%v:\033[0m %v, %v (%v) \r",
8989
state.name, state.loaded, state.active, state.sub)

0 commit comments

Comments
 (0)