Skip to content

Commit a6297c4

Browse files
committed
Fix CLI get --env command (#2404)
(cherry picked from commit 0657881)
1 parent 118cb76 commit a6297c4

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
@@ -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)