Return correct success condition in cgroupDel

Without this, we end up retrying until we fail, instead
of returning immediately on success!
This commit is contained in:
Bob Lantz
2015-01-23 16:39:50 -08:00
parent 9db6cdc261
commit ef59cd88dc
+1 -1
View File
@@ -674,7 +674,7 @@ class CPULimitedHost( Host ):
"Clean up our cgroup"
# info( '*** deleting cgroup', self.cgroup, '\n' )
_out, _err, exitcode = errRun( 'cgdelete -r ' + self.cgroup )
return exitcode != 0
return exitcode == 0 # success condition
def popen( self, *args, **kwargs ):
"""Return a Popen() object in node's namespace