mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Invert the conditional checking for whether or not mongo is running
This commit is contained in:
parent
26af43dab6
commit
4fd0fbda08
@ -137,7 +137,7 @@ def mongodb_control(cmd):
|
||||
|
||||
# Check to make sure the stop actually succeeded
|
||||
p = subprocess.Popen('pidof mongod', shell=True)
|
||||
shutdown_failed = p.wait() == 1
|
||||
shutdown_failed = p.wait() == 0
|
||||
|
||||
# If there was an error, log it.
|
||||
if err:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user