From 98e930a5521c01e5d364bc5edd375446ed5a9835 Mon Sep 17 00:00:00 2001 From: Duncan Hutty Date: Mon, 12 Aug 2013 12:51:47 -0400 Subject: ensure that bundles list correctly for clients with 1/many bundles --- src/lib/Bcfg2/Server/Info.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lib/Bcfg2/Server/Info.py') diff --git a/src/lib/Bcfg2/Server/Info.py b/src/lib/Bcfg2/Server/Info.py index d6fd3f723..64621aa53 100644 --- a/src/lib/Bcfg2/Server/Info.py +++ b/src/lib/Bcfg2/Server/Info.py @@ -563,9 +563,10 @@ class Showclient(InfoCmd): print(group_fmt % ("", group, category)) if metadata.bundles: - print(fmt % ("Bundles:", list(metadata.bundles)[0])) - for bnd in sorted(list(metadata.bundles)[1:]): - print(fmt % ("", bnd)) + sorted_bundles = sorted(list(metadata.bundles)) + print(fmt % ("Bundles:", sorted_bundles[0])) + for bnd in sorted_bundles[1:]: + print(fmt % ("", bnd)) if metadata.connectors: print("Connector data") print("=" * 80) -- cgit v1.2.3-1-g7c22