summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2
diff options
context:
space:
mode:
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