mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
Fix psutil usage on el6 for job cancel
psutil will fail to import on el6 due to not being able to access a pseudo terminal. This issues a SIGKILL to the proot process in order to force the stop
This commit is contained in:
parent
31b8491d53
commit
3b96c3ca52
@ -23,6 +23,10 @@ import uuid
|
||||
from distutils.version import LooseVersion as Version
|
||||
import dateutil.parser
|
||||
import yaml
|
||||
try:
|
||||
import psutil
|
||||
except:
|
||||
psutil = None
|
||||
|
||||
# Pexpect
|
||||
import pexpect
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user