diff options
author | Jason Kincl <kincljc@ornl.gov> | 2013-05-29 00:03:23 -0400 |
---|---|---|
committer | Jason Kincl <kincljc@ornl.gov> | 2013-05-29 00:03:23 -0400 |
commit | 8a909207d3bbac898b1cdef21946cf6b70a70f51 (patch) | |
tree | c53c95deaa9bc329dc05d37c1288c4b97d897877 /src/lib/Bcfg2 | |
parent | ad8ce7c23818f76c4aed5646fe3a4bbbcfa15f64 (diff) | |
download | bcfg2-8a909207d3bbac898b1cdef21946cf6b70a70f51.tar.gz bcfg2-8a909207d3bbac898b1cdef21946cf6b70a70f51.tar.bz2 bcfg2-8a909207d3bbac898b1cdef21946cf6b70a70f51.zip |
Comments: Fix lint check so that it only runs if using clients.xml
Diffstat (limited to 'src/lib/Bcfg2')
-rw-r--r-- | src/lib/Bcfg2/Server/Lint/Comments.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/Comments.py b/src/lib/Bcfg2/Server/Lint/Comments.py index 7c3b2d9cc..080d0b821 100644 --- a/src/lib/Bcfg2/Server/Lint/Comments.py +++ b/src/lib/Bcfg2/Server/Lint/Comments.py @@ -144,9 +144,10 @@ class Comments(Bcfg2.Server.Lint.ServerPlugin): self.metadata.groups_xml.data, "metadata") if self.has_all_xincludes("clients.xml"): - self.check_xml(os.path.join(self.metadata.data, "clients.xml"), - self.metadata.clients_xml.data, - "metadata") + if hasattr(self.metadata, "clients_xml"): + self.check_xml(os.path.join(self.metadata.data, "clients.xml"), + self.metadata.clients_xml.data, + "metadata") def check_cfg(self): """ Check Cfg files and ``info.xml`` files for required |