summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-11-07 08:07:46 -0600
committerTim Laszlo <tim.laszlo@gmail.com>2012-11-07 08:07:55 -0600
commit374511bf1d9c37e49ee874f3be15586b7a5d6d44 (patch)
tree36d84838274078493a1df3ef220c7608211d6c75 /src/lib/Bcfg2
parent31a857c6b6b5fa5644e996b70f9d0b60e09f41aa (diff)
downloadbcfg2-374511bf1d9c37e49ee874f3be15586b7a5d6d44.tar.gz
bcfg2-374511bf1d9c37e49ee874f3be15586b7a5d6d44.tar.bz2
bcfg2-374511bf1d9c37e49ee874f3be15586b7a5d6d44.zip
Check if linkentry is not none
Diffstat (limited to 'src/lib/Bcfg2')
-rw-r--r--src/lib/Bcfg2/Reporting/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Reporting/models.py b/src/lib/Bcfg2/Reporting/models.py
index efb9e80a1..c7850f4af 100644
--- a/src/lib/Bcfg2/Reporting/models.py
+++ b/src/lib/Bcfg2/Reporting/models.py
@@ -556,7 +556,7 @@ class PathEntry(SuccessEntry):
rv.append("Directory has extra files")
elif self.detail_type != PathEntry.DETAIL_UNUSED:
rv.append("Incorrect data")
- if hasattr(self, 'linkentry') and \
+ if hasattr(self, 'linkentry') and self.linkentry and \
self.linkentry.target_path != self.linkentry.current_path:
rv.append("Incorrect target")
return rv