Code review comment for lp:~nuclearbob/utah/cobbler-pidlock

Revision history for this message
Javier Collado (javier.collado) wrote :

To take Joe's comment into account, you might want to check the process command line:

if psutil.pid_exists(pid) and 'run_utah_test.py' in '.join(psutil.Process(pid).cmdline):
    <machine is being used>

utah already depends on psutil, so this won't add an extra dependency to the package.

« Back to merge proposal