diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-05-09 16:45:58 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-05-09 16:45:58 -0400 |
commit | 148a01651bbdf627e4848f1b455ccfe79b8b5902 (patch) | |
tree | 5753c832e8acbff9e838f343189179c7c5bb08b4 /src | |
parent | bc1394e2062983f3da22f9ec687db8e6de0567a0 (diff) | |
download | bcfg2-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.py | 2 |
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 |