smol fix
This commit is contained in:
parent
063152ca46
commit
1781fd3960
@ -166,7 +166,7 @@ def _cmd_grant(args):
|
|||||||
print(f" delivery: direct p2p ({result['peer']})")
|
print(f" delivery: direct p2p ({result['peer']})")
|
||||||
|
|
||||||
|
|
||||||
# ── credentials / collect ───────────────────────────────────────────
|
# ── credentials ─────────────────────────────────────────────────────
|
||||||
|
|
||||||
def _cmd_credentials_list(args):
|
def _cmd_credentials_list(args):
|
||||||
local = store.list_credentials(args.userid)
|
local = store.list_credentials(args.userid)
|
||||||
@ -184,8 +184,6 @@ def _cmd_credentials_list(args):
|
|||||||
for reg_hex in owned:
|
for reg_hex in owned:
|
||||||
print(f" {reg_hex}:__admin__ (reserved owner role)")
|
print(f" {reg_hex}:__admin__ (reserved owner role)")
|
||||||
|
|
||||||
print("\npending grants: removed (use direct p2p listener)")
|
|
||||||
|
|
||||||
|
|
||||||
def _cmd_p2p_listen(args):
|
def _cmd_p2p_listen(args):
|
||||||
if not _is_loopback_host(args.host):
|
if not _is_loopback_host(args.host):
|
||||||
@ -326,9 +324,9 @@ def main():
|
|||||||
c.set_defaults(func=_cmd_grant)
|
c.set_defaults(func=_cmd_grant)
|
||||||
|
|
||||||
# credentials
|
# credentials
|
||||||
cred_p = sub.add_parser("credentials", help="credentials (local + pending)")
|
cred_p = sub.add_parser("credentials", help="local credentials")
|
||||||
cred_sub = cred_p.add_subparsers(dest="action", required=True)
|
cred_sub = cred_p.add_subparsers(dest="action", required=True)
|
||||||
c = cred_sub.add_parser("list", help="show local + pending credentials")
|
c = cred_sub.add_parser("list", help="show local credentials")
|
||||||
c.add_argument("userid")
|
c.add_argument("userid")
|
||||||
c.set_defaults(func=_cmd_credentials_list)
|
c.set_defaults(func=_cmd_credentials_list)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user