From ff8a68283086530f008e07d6e48251a5f09afd1d Mon Sep 17 00:00:00 2001 From: Tyler Nix <67964959+tylernix@users.noreply.github.com> Date: Fri, 18 Mar 2022 09:11:08 -0500 Subject: [PATCH] import properly edited user template (#411) --- internal/cli/users.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cli/users.go b/internal/cli/users.go index 045dd4d40..f16afee11 100644 --- a/internal/cli/users.go +++ b/internal/cli/users.go @@ -9,8 +9,8 @@ import ( "github.com/auth0/auth0-cli/internal/auth0" "github.com/auth0/auth0-cli/internal/prompt" "github.com/auth0/auth0-cli/internal/users" - "github.com/spf13/cobra" "github.com/auth0/go-auth0/management" + "github.com/spf13/cobra" ) var ( @@ -632,7 +632,7 @@ auth0 users import -c "Username-Password-Authentication" -t "Basic Example" --up } // Convert json array to map - jsonstr := userImportOptions.getValue(inputs.Template) + jsonstr := inputs.TemplateBody var jsonmap []map[string]interface{} jsonErr := json.Unmarshal([]byte(jsonstr), &jsonmap) if jsonErr != nil {