From b0b9066a1b5a18558b28e21336cb6b334d227bf6 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 14 Jul 2005 15:25:06 +0000 Subject: fix schemadir problem (Logical change 1.266) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1086 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/ValidateBcfg2Repo | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/sbin/ValidateBcfg2Repo b/src/sbin/ValidateBcfg2Repo index 5fb822df0..e77f33500 100644 --- a/src/sbin/ValidateBcfg2Repo +++ b/src/sbin/ValidateBcfg2Repo @@ -7,6 +7,7 @@ from ConfigParser import ConfigParser if __name__ == '__main__': cf = ConfigParser() + schemadir = '/usr/share/bcfg2/schemas' cf.read(['/etc/bcfg2.conf']) try: repo = cf.get('server', 'repository') @@ -15,10 +16,6 @@ if __name__ == '__main__': print "Usage: validate_repo " raise SystemExit, 1 repo = argv[1] - if len(argv) == 3: - schemadir = argv[2] - else: - schemadir = '/usr/share/bcfg2/schemas' # add more validation as more schemas get written filesets = {'metadata':("%s/etc/metadata.xml", "%s/metadata.xsd"), -- cgit v1.2.3-1-g7c22