Skip to content

Commit

Permalink
fix: filter on ls-hosts
Browse files Browse the repository at this point in the history
Change-Id: I6136710becbddb5bc7c3095d2188c008bd67b519
  • Loading branch information
grafuls committed Sep 29, 2020
1 parent a700ada commit 5c50f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/quads-cli
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ def main(_args):

hosts = Host.objects(**kwargs).all()
if hosts:
for host in hosts:
logger.info(host)
for host in sorted(hosts, key=lambda k: k["name"]):
logger.info(host.name)
else:
logger.warning("No hosts found.")

Expand Down

0 comments on commit 5c50f14

Please sign in to comment.