From 73a06aaba4f9cc0dc7357d7cc9e4c29150fb6516 Mon Sep 17 00:00:00 2001 From: Andrew Martinez Date: Wed, 21 Aug 2024 16:49:12 -0400 Subject: [PATCH] fix CLI processing of scopes --- ziti/cmd/edge/create_extjwtsigner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ziti/cmd/edge/create_extjwtsigner.go b/ziti/cmd/edge/create_extjwtsigner.go index 579d30043..157c1d399 100644 --- a/ziti/cmd/edge/create_extjwtsigner.go +++ b/ziti/cmd/edge/create_extjwtsigner.go @@ -160,7 +160,7 @@ func runCreateExtJwtSigner(options *createExtJwtSignerOptions) (err error) { var cleanedScopes []string for _, curScope := range options.ExtJwtSigner.Scopes { - if strings.TrimSpace(curScope) == "" { + if strings.TrimSpace(curScope) != "" { cleanedScopes = append(cleanedScopes, curScope) } }