Skip to content

Commit bfba688

Browse files
Fix: cortex get "no apis deployed" when only async apis (#2428)
1 parent 5e94db2 commit bfba688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/cmd/get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ func getAPIsByEnv(env cliconfig.Environment) (string, error) {
374374
}
375375
}
376376

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

0 commit comments

Comments
 (0)