mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -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
|
# Check to make sure the stop actually succeeded
|
||||||
p = subprocess.Popen('pidof mongod', shell=True)
|
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 there was an error, log it.
|
||||||
if err:
|
if err:
|
||||||
|
|||||||
Reference in New Issue
Block a user