Skip to content

Commit

Permalink
Fix CLI get --env command (#2404)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0657881)
  • Loading branch information
deliahu committed Dec 3, 2021
1 parent 118cb76 commit a6297c4
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 @@ -360,7 +360,7 @@ func getAPIsByEnv(env cliconfig.Environment) (string, error) {
var allTrafficSplitters []schema.APIResponse

for _, api := range apisRes {
switch api.Spec.Kind {
switch api.Metadata.Kind {
case userconfig.BatchAPIKind:
allBatchAPIs = append(allBatchAPIs, api)
case userconfig.TaskAPIKind:
Expand Down

0 comments on commit a6297c4

Please sign in to comment.