diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-10-08 20:38:28 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-10-08 20:38:28 +0000 |
commit | 3e7d63c4b27057676f02fa505ef108f45a81472f (patch) | |
tree | e16758c61b43a417ba0c4c2c06f944e394da33c9 | |
parent | 26f2687927ed180c82ed0d60ce5fb8fa90be65d0 (diff) | |
download | bcfg2-3e7d63c4b27057676f02fa505ef108f45a81472f.tar.gz bcfg2-3e7d63c4b27057676f02fa505ef108f45a81472f.tar.bz2 bcfg2-3e7d63c4b27057676f02fa505ef108f45a81472f.zip |
Add schema support for new Decisions plugin
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4934 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | schemas/decisions.xsd | 23 | ||||
-rwxr-xr-x | src/sbin/bcfg2-repo-validate | 4 |
2 files changed, 26 insertions, 1 deletions
diff --git a/schemas/decisions.xsd b/schemas/decisions.xsd new file mode 100644 index 000000000..57ee71672 --- /dev/null +++ b/schemas/decisions.xsd @@ -0,0 +1,23 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en"> + + <xsd:annotation> + <xsd:documentation> + decision list schema for bcfg2 + Narayan Desai, Argonne National Laboratory + $Id$ + </xsd:documentation> + </xsd:annotation> + +<xsd:element name='Decisions'> + <xsd:complexType> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='Decision'> + <xsd:complexType> + <xsd:attribute name='type' type='xsd:string' use='required'/> + <xsd:attribute name='name' type='xsd:string' use='required'/> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> +</xsd:schema> diff --git a/src/sbin/bcfg2-repo-validate b/src/sbin/bcfg2-repo-validate index 1896d7c37..44823ab4c 100755 --- a/src/sbin/bcfg2-repo-validate +++ b/src/sbin/bcfg2-repo-validate @@ -75,6 +75,7 @@ if __name__ == '__main__': imageinfo_list = glob.glob("%s/etc/report-configuration.xml" % repo) services_list = glob.glob("%s/Svcmgr/*.xml" % repo) deps_list = glob.glob("%s/Deps/*.xml" % repo) + dec_list = glob.glob("%s/Decisions/*" % repo) filesets = {'metadata':(metadata_list, "%s/metadata.xsd"), 'clients':(clients_list, "%s/clients.xsd"), @@ -85,7 +86,8 @@ if __name__ == '__main__': 'rules':(rules_list, "%s/rules.xsd"), 'imageinfo':(imageinfo_list, "%s/report-configuration.xsd"), 'services':(services_list, "%s/services.xsd"), - 'deps':(deps_list, "%s/deps.xsd")} + 'deps':(deps_list, "%s/deps.xsd"), + 'decisions': (dec_list, "%s/decisions.xsd")} failures = 0 for k, (filelist, schemaname) in filesets.iteritems(): |