For prettier output machines in setup description are sorted
by id's of machines
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Controller/NetTestController.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Controller/NetTestController.py b/lnst/Controller/NetTestController.py
index 1e90688..cce1fec 100644
--- a/lnst/Controller/NetTestController.py
+++ b/lnst/Controller/NetTestController.py
@@ -244,7 +244,7 @@ class NetTestController:
logging.info("Pool match description:")
if sp.is_setup_virtual():
logging.info(" Setup is using virtual machines.")
- for m_id, m in match["machines"].iteritems():
+ for m_id, m in sorted(match["machines"].iteritems()):
logging.info(" host \"%s\" uses \"%s\"" %
(m_id, m["target"]))
for if_id, match in m["interfaces"].iteritems():
pool_id = match["target"]
--
2.4.3