Fix `piker services` cmd
parent
c239faf4e5
commit
adccb687fe
|
@ -109,13 +109,11 @@ def services(config, tl, names):
|
||||||
) as portal:
|
) as portal:
|
||||||
registry = await portal.run_from_ns('self', 'get_registry')
|
registry = await portal.run_from_ns('self', 'get_registry')
|
||||||
json_d = {}
|
json_d = {}
|
||||||
for uid, socket in registry.items():
|
for key, socket in registry.items():
|
||||||
name, uuid = uid
|
# name, uuid = uid
|
||||||
host, port = socket
|
host, port = socket
|
||||||
json_d[f'{name}.{uuid}'] = f'{host}:{port}'
|
json_d[key] = f'{host}:{port}'
|
||||||
click.echo(
|
click.echo(f"{colorize_json(json_d)}")
|
||||||
f"Available `piker` services:\n{colorize_json(json_d)}"
|
|
||||||
)
|
|
||||||
|
|
||||||
tractor.run(
|
tractor.run(
|
||||||
list_services,
|
list_services,
|
||||||
|
|
Loading…
Reference in New Issue