1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

fixes hanging chads, if chads were ansible

This commit is contained in:
Chris Meyers 2016-04-29 15:55:32 -04:00
parent ce14c0daff
commit b18dd8fe21

View File

@ -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)