summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-07-02 17:27:25 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-07-02 17:27:25 +0000
commit62214705d3fdc3c3f105a59aa177854a8d51c619 (patch)
treea2d26c8ddfd87c569153cbc478d849f59bf1b06a /src
parent84b33b9ae9022b9e6c60ea35a6d3763c0a122a49 (diff)
downloadbcfg2-62214705d3fdc3c3f105a59aa177854a8d51c619.tar.gz
bcfg2-62214705d3fdc3c3f105a59aa177854a8d51c619.tar.bz2
bcfg2-62214705d3fdc3c3f105a59aa177854a8d51c619.zip
Fix multiple showclient tb (Resolves Ticket #457)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3405 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-info15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 5acdbea42..12f7f381f 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -2,7 +2,7 @@
'''This tool loads the Bcfg2 core into an interactive debugger'''
__revision__ = '$Revision$'
-import logging, lxml.etree, sys, time, cmd
+import copy, logging, lxml.etree, sys, time, cmd
import Bcfg2.Logging, Bcfg2.Server.Core, os
import Bcfg2.Server.Plugins.Metadata, Bcfg2.Server.Plugin
@@ -187,10 +187,11 @@ Usage: [quit|exit]"""
print "Client %s not defined" % client
continue
profile = self.metadata.clients[client]
- bundles, groups, categories = self.metadata.groups[profile]
- groups.remove(profile)
- numbundles = len(bundles)
- numgroups = len(groups)
+ bds, gps, cgs = \
+ copy.deepcopy(self.metadata.groups[profile])
+ gps.remove(profile)
+ numbundles = len(bds)
+ numgroups = len(gps)
num = max((numbundles, numgroups))
for i in range(0, num):
if i == 0:
@@ -200,11 +201,11 @@ Usage: [quit|exit]"""
c = ""
p = ""
if i < numbundles:
- b = bundles[i]
+ b = bds[i]
else:
b = ""
if i < numgroups:
- g = groups[i]
+ g = gps[i]
else:
g = ""
data.append((c, p, g, b))