Skip to content

Commit

Permalink
import properly edited user template (auth0#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylernix authored Mar 18, 2022
1 parent f9bcaf1 commit ff8a682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cli/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ff8a682

Please sign in to comment.