mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 21:20:08 -03:30
Invert the conditional checking for whether or not mongo is running
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user