Invert the conditional checking for whether or not mongo is running

This commit is contained in:
Matthew Jones 2015-07-06 14:28:27 -04:00
parent 26af43dab6
commit 4fd0fbda08

View File

@ -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: