From b18dd8fe21221c725096669493b27600e0ff382d Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Fri, 29 Apr 2016 15:55:32 -0400 Subject: [PATCH] fixes hanging chads, if chads were ansible --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index db47f3eaec..662ea91343 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -558,7 +558,7 @@ class BaseTask(Task): instance = self.update_model(instance.pk) if instance.cancel_flag: try: - if tower_settings.AWX_PROOT_ENABLED: + if tower_settings.AWX_PROOT_ENABLED and self.should_use_proot(instance): # NOTE: Refactor this once we get a newer psutil across the board if not psutil: os.kill(child.pid, signal.SIGKILL)