Skip to content

Commit 99c91bc

Browse files
authored
fix create user role (#52)
* fix create user role * updating changelog
1 parent ca48a31 commit 99c91bc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.1.3
4+
5+
* Fix create-user role argument
6+
37
## v0.1.2
48

59
* Add list-edb-names command

rai/cmds.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ func createUser(cmd *cobra.Command, args []string) {
717717
// assert len(args) == 1
718718
action := newAction(cmd)
719719
email := args[0]
720-
roles := action.getStringArray("roles")
720+
roles := action.getStringArray("role")
721721
action.Start("Create user '%s' roles=%s", email, strings.Join(roles, ","))
722722
rsp, err := action.Client().CreateUser(email, roles)
723723
action.Exit(rsp, err)

0 commit comments

Comments
 (0)