From 5c50f14c01cfb2fd8192859a7df69509422ebdaf Mon Sep 17 00:00:00 2001 From: Gonzalo Rafuls Date: Tue, 29 Sep 2020 17:05:05 +0200 Subject: [PATCH] fix: filter on ls-hosts Change-Id: I6136710becbddb5bc7c3095d2188c008bd67b519 --- bin/quads-cli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/quads-cli b/bin/quads-cli index f6cb3a389..aee0b72ef 100755 --- a/bin/quads-cli +++ b/bin/quads-cli @@ -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.")