summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Info.py
diff options
context:
space:
mode:
authorDuncan Hutty <hutty@ornl.gov>2013-08-12 12:51:47 -0400
committerDuncan Hutty <hutty@ornl.gov>2013-08-12 12:51:47 -0400
commit98e930a5521c01e5d364bc5edd375446ed5a9835 (patch)
tree65a8cb3c1671fb70f1dab3569836df22cda45004 /src/lib/Bcfg2/Server/Info.py
parentab141993cb9ff997b41dba1fc4575ba0e94b9cdf (diff)
downloadbcfg2-98e930a5521c01e5d364bc5edd375446ed5a9835.tar.gz
bcfg2-98e930a5521c01e5d364bc5edd375446ed5a9835.tar.bz2
bcfg2-98e930a5521c01e5d364bc5edd375446ed5a9835.zip
ensure that bundles list correctly for clients with 1/many bundles
Diffstat (limited to 'src/lib/Bcfg2/Server/Info.py')
-rw-r--r--src/lib/Bcfg2/Server/Info.py7
1 files changed, 4 insertions, 3 deletions
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)