Skip to content

Commit

Permalink
Add comment to explain why privilege is just a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Manavopoulos committed May 2, 2017
1 parent d8e6088 commit 4c152c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/bytemark/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func init() {
},
},
Action: With(OptionalArgs("username", "privilege"), RequiredFlags("username", "privilege"), AuthProvider, func(c *Context) error {
// Privilege is just a string and not a PrivilegeFlag, since it can only be "cluster_admin" or "cluster_su"
if err := global.Client.CreateUser(c.String("username"), c.String("privilege")); err != nil {
return err
}
Expand Down

0 comments on commit 4c152c5

Please sign in to comment.