Require non-nil status for exit of fleetctl query (#2184)

Fixes an issue some users encountered in which the query would exit
before any results were returned (when latency to the Fleet server was
high).
This commit is contained in:
Zachary Wasserman
2020-01-16 17:45:26 -08:00
committed by GitHub
parent ee0a6e9064
commit 71eef8a315
+1 -1
View File
@@ -160,7 +160,7 @@ func queryCommand() cli.Command {
if !flQuiet {
s.Suffix = msg
}
if total == responded {
if total == responded && status != nil {
s.Stop()
if !flQuiet {
fmt.Fprintln(os.Stderr, msg)