Skip to content

Commit

Permalink
feat: use alias in panel info (#2877)
Browse files Browse the repository at this point in the history
* feat: use alias in panel info

* fix: single quotes

Co-authored-by: Joan Fontanals <joan.martinez@jina.ai>

Co-authored-by: Joan Fontanals <joan.martinez@jina.ai>
  • Loading branch information
cristianmtr and JoanFM committed Jul 8, 2021
1 parent 3e6f94b commit 1c5e047
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jina/hubble/hubio.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ def _prettyprint_result(self, console, result):
table.add_row(':whale: DockerHub', f'https://hub.docker.com/r/jinahub/{uuid8}/')
console.print(table)

usage = f'{uuid8}' if visibility == 'public' else f'{uuid8}:{secret}'
presented_id = image.get('alias', uuid8)
usage = (
f'{presented_id}' if visibility == 'public' else f'{presented_id}:{secret}'
)

if not self.args.no_usage:
self._get_prettyprint_usage(console, usage)
Expand Down

0 comments on commit 1c5e047

Please sign in to comment.