summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-admin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-02-12 22:20:24 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-02-12 22:20:24 +0000
commitffe2d427dbaade13e628c7199381c18d1036d3bd (patch)
tree65c6471407d0b042161f977d89895e1e90ebd01a /src/sbin/bcfg2-admin
parent5f743cb0523f6e2bed22958d995063696be883ae (diff)
downloadbcfg2-ffe2d427dbaade13e628c7199381c18d1036d3bd.tar.gz
bcfg2-ffe2d427dbaade13e628c7199381c18d1036d3bd.tar.bz2
bcfg2-ffe2d427dbaade13e628c7199381c18d1036d3bd.zip
improve comparison mode output
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2807 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-admin')
-rwxr-xr-xsrc/sbin/bcfg2-admin12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin
index 2790ba17b..80b8a06a2 100755
--- a/src/sbin/bcfg2-admin
+++ b/src/sbin/bcfg2-admin
@@ -179,7 +179,7 @@ def compare(new, old):
elif len(equiv) >= 1:
if child.tag == 'ConfigFile':
if child.text != equiv[0].text:
- print "%s %s contents differ" \
+ print " %s %s contents differ" \
% (child.tag, child.get('name'))
continue
noattrmatch = [field for field in important[child.tag] if \
@@ -188,12 +188,12 @@ def compare(new, old):
new.remove(child)
old.remove(equiv[0])
else:
- print "%s %s attributes %s do not match" % \
+ print " %s %s attributes %s do not match" % \
(child.tag, child.get('name'), noattrmatch)
if len(old.getchildren()) == 0 and len(new.getchildren()) == 0:
return True
if new.tag == 'Independant':
- name = 'Indep'
+ name = 'Base'
else:
name = new.get('name')
both = []
@@ -205,11 +205,11 @@ def compare(new, old):
newl.remove(entry)
oldl.remove(entry)
for entry in both:
- print "%s differs (in bundle %s)" % (entry, name)
+ print " %s differs (in bundle %s)" % (entry, name)
for entry in oldl:
- print "%s only in old configuration (in bundle %s)" % (entry, name)
+ print " %s only in old configuration (in bundle %s)" % (entry, name)
for entry in newl:
- print "%s only in new configuration (in bundle %s)" % (entry, name)
+ print " %s only in new configuration (in bundle %s)" % (entry, name)
return False
def do_compare(args):