Skip to content

Commit

Permalink
Fix panic in list enrollments. Fixes #1304
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenz committed Sep 8, 2023
1 parent f75897d commit 6614359
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ziti/cmd/edge/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,12 +669,12 @@ func outputEnrollments(o *api.Options, children []*gabs.Container, pagingInfo *a
t.AppendHeader(table.Row{"ID", "Method", "Identity Id", "Identity Name", "Expires At", "Token", "JWT"})

for _, entity := range children {
id, _ := entity.Path("id").Data().(string)
method := entity.Path("method").Data().(string)
identityId := entity.Path("identityId").Data().(string)
identityName := entity.Path("identity.name").Data().(string)
expiresAt := entity.Path("expiresAt").Data().(string)
token := entity.Path("token").Data().(string)
id := api.GetJsonString(entity, "id")
method := api.GetJsonString(entity, "method")
identityId := api.GetJsonString(entity, "identityId")
identityName := api.GetJsonString(entity, "identity.name")
expiresAt := api.GetJsonString(entity, "expiresAt")
token := api.GetJsonString(entity, "token")
jwt := "See json"

t.AppendRow(table.Row{id, method, identityId, identityName, expiresAt, token, jwt})
Expand Down

0 comments on commit 6614359

Please sign in to comment.