summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-05-09 16:45:58 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-05-09 16:45:58 -0400
commit148a01651bbdf627e4848f1b455ccfe79b8b5902 (patch)
tree5753c832e8acbff9e838f343189179c7c5bb08b4 /src
parentbc1394e2062983f3da22f9ec687db8e6de0567a0 (diff)
downloadbcfg2-148a01651bbdf627e4848f1b455ccfe79b8b5902.tar.gz
bcfg2-148a01651bbdf627e4848f1b455ccfe79b8b5902.tar.bz2
bcfg2-148a01651bbdf627e4848f1b455ccfe79b8b5902.zip
fixed return value check in diff filter
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Cfg/CfgDiffFilter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Cfg/CfgDiffFilter.py b/src/lib/Bcfg2/Server/Plugins/Cfg/CfgDiffFilter.py
index b408e1b55..906666c21 100644
--- a/src/lib/Bcfg2/Server/Plugins/Cfg/CfgDiffFilter.py
+++ b/src/lib/Bcfg2/Server/Plugins/Cfg/CfgDiffFilter.py
@@ -21,7 +21,7 @@ class CfgDiffFilter(CfgFilter):
ret = patch.wait()
output = open(basefile.name, 'r').read()
os.unlink(basefile.name)
- if ret >> 8 != 0:
+ if ret != 0:
logger.error("Error applying diff %s: %s" % (delta.name, stderr))
raise Bcfg2.Server.Plugin.PluginExecutionError('delta', delta)
return output