From 374511bf1d9c37e49ee874f3be15586b7a5d6d44 Mon Sep 17 00:00:00 2001 From: Tim Laszlo Date: Wed, 7 Nov 2012 08:07:46 -0600 Subject: Check if linkentry is not none --- src/lib/Bcfg2/Reporting/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-1-g7c22