diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-11-07 08:07:46 -0600 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-11-07 08:07:55 -0600 |
commit | 374511bf1d9c37e49ee874f3be15586b7a5d6d44 (patch) | |
tree | 36d84838274078493a1df3ef220c7608211d6c75 /src/lib/Bcfg2 | |
parent | 31a857c6b6b5fa5644e996b70f9d0b60e09f41aa (diff) | |
download | bcfg2-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.py | 2 |
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 |