X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fcli_commands%2Frbac.py;h=71fa12bec8712c62f06fd6f39c515491d6aec8d3;hb=c0420cf86aaed737f59666516dd9e4de5c5db16c;hp=fcad9632f7e4879a6782a3640b1414d73874e003;hpb=08d655951c662042f370edc7f7d75cb7d3b3846a;p=osm%2Fosmclient.git diff --git a/osmclient/cli_commands/rbac.py b/osmclient/cli_commands/rbac.py index fcad963..71fa12b 100755 --- a/osmclient/cli_commands/rbac.py +++ b/osmclient/cli_commands/rbac.py @@ -294,9 +294,9 @@ def project_update(ctx, project, name, quotas): "--projects", # prompt="Comma separate list of projects", multiple=True, - callback=lambda ctx, param, value: "".join(value).split(",") - if all(len(x) == 1 for x in value) - else value, + callback=lambda ctx, param, value: ( + "".join(value).split(",") if all(len(x) == 1 for x in value) else value + ), help="list of project ids that the user belongs to", ) @click.option( @@ -366,9 +366,9 @@ def user_create(ctx, username, password, projects, project_role_mappings, domain @click.option( "--new-password", "new_password", - prompt=True, - hide_input=True, - confirmation_prompt=True, + # prompt=True, + # hide_input=True, + # confirmation_prompt=True, help="new user password", ) @click.option( @@ -470,12 +470,14 @@ def user_list(ctx, filter): user["username"], user["_id"], user["_admin"]["user_status"].upper(), - time.strftime( - "%b-%d-%Y %X", - time.gmtime(user["_admin"]["account_expire_time"]), - ) - if not user["username"] == "admin" - else user["_admin"]["account_expire_time"], + ( + time.strftime( + "%b-%d-%Y %X", + time.gmtime(user["_admin"]["account_expire_time"]), + ) + if not user["username"] == "admin" + else user["_admin"]["account_expire_time"] + ), ] ) else: