diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-04-14 08:47:24 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-04-14 08:47:24 -0400 |
commit | 7cebd3f47926453bdac2b3f2c41804ac83358388 (patch) | |
tree | f14e680147454ef735ba99942f4e2519fe3be415 /src/lib/Server/Plugins | |
parent | 5819d7182ac703c9f830df1ea2b940fbfa976db7 (diff) | |
download | bcfg2-7cebd3f47926453bdac2b3f2c41804ac83358388.tar.gz bcfg2-7cebd3f47926453bdac2b3f2c41804ac83358388.tar.bz2 bcfg2-7cebd3f47926453bdac2b3f2c41804ac83358388.zip |
added Client tag to StructFile; made PropertyFile inherit from StructFile
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r-- | src/lib/Server/Plugins/Properties.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/Server/Plugins/Properties.py b/src/lib/Server/Plugins/Properties.py index 2888ef1d1..c5d2acc44 100644 --- a/src/lib/Server/Plugins/Properties.py +++ b/src/lib/Server/Plugins/Properties.py @@ -4,15 +4,9 @@ import lxml.etree import Bcfg2.Server.Plugin -class PropertyFile(Bcfg2.Server.Plugin.XMLFileBacked): +class PropertyFile(Bcfg2.Server.Plugin.StructFile): """Class for properties files.""" - - def Index(self): - """Build data into an xml object.""" - try: - self.data = lxml.etree.XML(self.data) - except lxml.etree.XMLSyntaxError: - Bcfg2.Server.Plugin.logger.error("Failed to parse %s" % self.name) + pass class PropDirectoryBacked(Bcfg2.Server.Plugin.DirectoryBacked): |