From 62214705d3fdc3c3f105a59aa177854a8d51c619 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 2 Jul 2007 17:27:25 +0000 Subject: 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 --- src/sbin/bcfg2-info | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/sbin') 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)) -- cgit v1.2.3-1-g7c22