diff options
Diffstat (limited to 'client/go/cmd/status.go')
-rw-r--r-- | client/go/cmd/status.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/client/go/cmd/status.go b/client/go/cmd/status.go index 1eacff56354..65da8f8f1c0 100644 --- a/client/go/cmd/status.go +++ b/client/go/cmd/status.go @@ -7,8 +7,6 @@ package cmd import ( "fmt" "log" - "strconv" - "time" "github.com/fatih/color" "github.com/spf13/cobra" @@ -76,9 +74,12 @@ func printServiceStatus(cli *CLI, name string) error { if err != nil { return err } - timeout := time.Duration(cli.flags.waitSecs) * time.Second + timeout, err := cli.config.timeout() + if err != nil { + return err + } if timeout > 0 { - log.Printf("Waiting up to %s %s for service to become ready ...", color.CyanString(strconv.Itoa(cli.flags.waitSecs)), color.CyanString("seconds")) + log.Printf("Waiting up to %s for service to become ready ...", color.CyanString(timeout.String())) } s, err := t.Service(name, timeout, 0, "") if err != nil { |