From: Ondrej Lichtner <olichtne(a)redhat.com>
When formatting the match description we sort the machines, we should
also sort the interfaces to improve the readability a little...
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Controller/MachineMapper.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Controller/MachineMapper.py b/lnst/Controller/MachineMapper.py
index 13488eb..2bc6ade 100644
--- a/lnst/Controller/MachineMapper.py
+++ b/lnst/Controller/MachineMapper.py
@@ -23,7 +23,7 @@ def format_match_description(match):
output.append(" Setup is using virtual machines.")
for m_id, m in sorted(match["machines"].iteritems()):
output.append(" host \"{}\" uses
\"{}\"".format(m_id, m["target"]))
- for if_id, match in m["interfaces"].iteritems():
+ for if_id, match in sorted(m["interfaces"].iteritems()):
pool_id = match["target"]
output.append(" interface \"{}\" matched to
\"{}\"".
format(if_id, pool_id))
--
2.17.0