Skip to content

Commit

Permalink
Fix: cortex get "no apis deployed" when only async apis (#2428)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmpcollins authored Feb 2, 2022
1 parent 5e94db2 commit bfba688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func getAPIsByEnv(env cliconfig.Environment) (string, error) {
}
}

if len(allRealtimeAPIs) == 0 && len(allBatchAPIs) == 0 && len(allTaskAPIs) == 0 && len(allTrafficSplitters) == 0 {
if len(allRealtimeAPIs) == 0 && len(allAsyncAPIs) == 0 && len(allBatchAPIs) == 0 && len(allTaskAPIs) == 0 && len(allTrafficSplitters) == 0 {
return console.Bold("no apis are deployed"), nil
}

Expand Down

0 comments on commit bfba688

Please sign in to comment.