diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-04-13 13:29:48 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-04-13 13:29:48 -0400 |
commit | 5819d7182ac703c9f830df1ea2b940fbfa976db7 (patch) | |
tree | 56bd88b8f34e7d0a636f42b8e91aaf1daa988cc0 /src/lib/Options.py | |
parent | c89cd2a8c930f3a2fc686b555079c9bc60803e0c (diff) | |
download | bcfg2-5819d7182ac703c9f830df1ea2b940fbfa976db7.tar.gz bcfg2-5819d7182ac703c9f830df1ea2b940fbfa976db7.tar.bz2 bcfg2-5819d7182ac703c9f830df1ea2b940fbfa976db7.zip |
A property file can now have a matching .xsd file (e.g.,
"Properties/foo.xml" and "Properties/foo.xsd") which specifies a
schema for that property file. bcfg2-repo-validate will check the
property file against its schema.
Updated bcfg2-repo-validate man page with several new options.
Diffstat (limited to 'src/lib/Options.py')
-rw-r--r-- | src/lib/Options.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Options.py b/src/lib/Options.py index f64b491d5..1973e7091 100644 --- a/src/lib/Options.py +++ b/src/lib/Options.py @@ -207,6 +207,8 @@ SCHEMA_PATH = Option('Path to XML Schema files', cmd='--schema', odesc='<schema path>', default="%s/share/bcfg2/schemas" % DEFAULT_INSTALL_PREFIX, long_arg=True) +REQUIRE_SCHEMA = Option("Require property files to have matching schema files", + cmd="--require-schema", default=False, long_arg=True) # Metadata options MDATA_OWNER = Option('Default Path owner', |