Skip to content

Commit 0657881

Browse files
authored
Fix CLI get --env command (#2404)
1 parent 8624f43 commit 0657881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/cmd/get.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func getAPIsByEnv(env cliconfig.Environment) (string, error) {
360360
var allTrafficSplitters []schema.APIResponse
361361

362362
for _, api := range apisRes {
363-
switch api.Spec.Kind {
363+
switch api.Metadata.Kind {
364364
case userconfig.BatchAPIKind:
365365
allBatchAPIs = append(allBatchAPIs, api)
366366
case userconfig.TaskAPIKind:

0 commit comments

Comments
 (0)