Fix `piker services` cmd

async_hist_loading
Tyler Goodlet 2022-02-28 11:56:55 -05:00
parent c239faf4e5
commit adccb687fe
1 changed files with 4 additions and 6 deletions

View File

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