diff --git a/cmd/model/list.go b/cmd/model/list.go index 516b648..ac61862 100644 --- a/cmd/model/list.go +++ b/cmd/model/list.go @@ -95,9 +95,9 @@ var listCmd = &cobra.Command{ models := authorizationmodel.AuthzModelList{} authzModels := response.AuthorizationModels - for i := range len(authzModels) { + for index := range len(authzModels) { authModel := authorizationmodel.AuthzModel{} - authModel.Set(authzModels[i]) + authModel.Set(authzModels[index]) models.AuthorizationModels = append(models.AuthorizationModels, authModel.DisplayAsJSON(fields)) }