summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-11-30 22:37:07 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-11-30 22:37:07 +0000
commit9491e7633b44722680e6a7e2e1c09b59bbcbf041 (patch)
tree699438e0905f0025b16d2db1f1769feb16fe92d6 /src/sbin
parentfaf2b9e5b2061887c53d467cab098f9d41ef4809 (diff)
downloadbcfg2-9491e7633b44722680e6a7e2e1c09b59bbcbf041.tar.gz
bcfg2-9491e7633b44722680e6a7e2e1c09b59bbcbf041.tar.bz2
bcfg2-9491e7633b44722680e6a7e2e1c09b59bbcbf041.zip
fix xmllint calls
(Logical change 1.376) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1580 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rw-r--r--src/sbin/ValidateBcfg2Repo6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sbin/ValidateBcfg2Repo b/src/sbin/ValidateBcfg2Repo
index 49b87c5c4..a1b9552ce 100644
--- a/src/sbin/ValidateBcfg2Repo
+++ b/src/sbin/ValidateBcfg2Repo
@@ -31,8 +31,8 @@ if __name__ == '__main__':
'imageinfo':("%s/etc/reports.xml", "%s/report-configuration.xsd"),
'services':("%s/etc/services.xml", "%s/services.xsd")}
- for k, (spec, schema) in filesets.iteritems():
- schema = XMLSchema(parse(open(schema%(schemadir))))
+ for k, (spec, schemaname) in filesets.iteritems():
+ schema = XMLSchema(parse(open(schemaname%(schemadir))))
for filename in glob(spec%(repo)):
try:
datafile = parse(open(filename))
@@ -48,4 +48,4 @@ if __name__ == '__main__':
print "%s checks out" % (filename)
else:
print "%s ***FAILS*** to verify \t\t<----" % (filename)
- system("xmllint --schema %s %s" % (schema % schemadir, filename))
+ system("xmllint --schema %s %s" % (schemaname % schemadir, filename))