From 4fd0fbda08bb1fb0a323074a6fb778db67009a18 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 6 Jul 2015 14:28:27 -0400 Subject: [PATCH] Invert the conditional checking for whether or not mongo is running --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index e6ea530f81..79f717e7d6 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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: