X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fcli_commands%2Frbac.py;h=71fa12bec8712c62f06fd6f39c515491d6aec8d3;hb=f5b188e14053b2246be507a23d9eef5ff7e42123;hp=4e1680d17247d255845b8d5cf69f293a5adfcdd2;hpb=2947e79a42d945edf7b1eed50ccb6191329a9dc3;p=osm%2Fosmclient.git diff --git a/osmclient/cli_commands/rbac.py b/osmclient/cli_commands/rbac.py index 4e1680d..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( @@ -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: