diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-07-14 15:25:06 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-07-14 15:25:06 +0000 |
commit | b0b9066a1b5a18558b28e21336cb6b334d227bf6 (patch) | |
tree | cf8f5bd270a781607227e18d226209acbd838d4e | |
parent | 0ac2a092b4b9b6ea532cb9b0dbbd965278799a11 (diff) | |
download | bcfg2-b0b9066a1b5a18558b28e21336cb6b334d227bf6.tar.gz bcfg2-b0b9066a1b5a18558b28e21336cb6b334d227bf6.tar.bz2 bcfg2-b0b9066a1b5a18558b28e21336cb6b334d227bf6.zip |
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
-rw-r--r-- | src/sbin/ValidateBcfg2Repo | 5 |
1 files changed, 1 insertions, 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 <repo directory>" 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"), |