mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -02:30
Remove extra output from doing a hard mongo shutdown.
This commit is contained in:
@@ -145,9 +145,7 @@ def mongodb_control(cmd):
|
|||||||
|
|
||||||
if cmd == 'stop' and shutdown_failed:
|
if cmd == 'stop' and shutdown_failed:
|
||||||
p = subprocess.Popen('sudo mongod --shutdown -f /etc/mongod.conf', shell=True)
|
p = subprocess.Popen('sudo mongod --shutdown -f /etc/mongod.conf', shell=True)
|
||||||
out, err = p.communicate()
|
|
||||||
p.wait()
|
p.wait()
|
||||||
logger.info("Shutdown command output: %s;%s" % (out, err))
|
|
||||||
|
|
||||||
@task(bind=True)
|
@task(bind=True)
|
||||||
def handle_work_error(self, task_id, subtasks=None):
|
def handle_work_error(self, task_id, subtasks=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user