From 148a01651bbdf627e4848f1b455ccfe79b8b5902 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Wed, 9 May 2012 16:45:58 -0400 Subject: fixed return value check in diff filter --- src/lib/Bcfg2/Server/Plugins/Cfg/CfgDiffFilter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-1-g7c22