Skip to content

Commit

Permalink
Merge pull request #171 from aiven/rdpo-fix-service-user-create-regre…
Browse files Browse the repository at this point in the history
…ssion

cli: fix user creation regression

#171
  • Loading branch information
rikonen authored Dec 17, 2020
2 parents 8b7c034 + 47cf89c commit 90b91c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aiven/client/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ def service__user_create(self):
acl_params = {
key: arg_vars[key].split()
for key in {"redis_acl_keys", "redis_acl_commands", "redis_acl_categories"}
if key in arg_vars
if arg_vars[key]
}
if acl_params:
extra_params = {"access_control": acl_params}
Expand Down
4 changes: 4 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def test_service_types_v():
AivenCLI().run(args=["service", "types", "-v"])


def test_service_user_create():
AivenCLI().run(args=["service", "user-create", "service", "--username", "username"])


def test_help():
AivenCLI().run(args=["help"])

Expand Down

0 comments on commit 90b91c7

Please sign in to comment.