summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2011-09-01 16:42:54 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2011-09-01 16:42:54 -0400
commit5bd9a24c5e165ecd0b61f573fd128e19223a3326 (patch)
treee7bc0849139924a5a53c7bd4615df847b91ec457
parentb97a6a8ea70db7e708febe008d7bbf73fe7c58e4 (diff)
downloadbcfg2-5bd9a24c5e165ecd0b61f573fd128e19223a3326.tar.gz
bcfg2-5bd9a24c5e165ecd0b61f573fd128e19223a3326.tar.bz2
bcfg2-5bd9a24c5e165ecd0b61f573fd128e19223a3326.zip
fixed traceback introduced by 5360af9fe752850b1647
-rw-r--r--src/lib/Server/Plugins/FileProbes.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/FileProbes.py b/src/lib/Server/Plugins/FileProbes.py
index 4df5a7f4a..751ca529b 100644
--- a/src/lib/Server/Plugins/FileProbes.py
+++ b/src/lib/Server/Plugins/FileProbes.py
@@ -77,8 +77,9 @@ class FileProbes(Bcfg2.Server.Plugin.Plugin,
# for which update is false; we can't possibly do
# anything with the data we get from such a probe
try:
- if (cfg.entries[path].get_pertinent_entries(metadata) and
- entry.get('update', 'false').lower() == "false"):
+ if (entry.get('update', 'false').lower() == "false" and
+ cfg.entries[path].get_pertinent_entries(entry,
+ metadata)):
continue
except (KeyError, Bcfg2.Server.Plugin.PluginExecutionError):
pass