From 94ef9a7e64e4bbec36e8430305acc09c1440c036 Mon Sep 17 00:00:00 2001 From: vmoyankov Date: Fri, 22 Sep 2017 12:19:01 +0300 Subject: [PATCH] B #5359: Fix force_shutdown bug. Output of the command is executed. (#434) --- src/mad/sh/scripts_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mad/sh/scripts_common.sh b/src/mad/sh/scripts_common.sh index 262d9107b7..8fb659900c 100644 --- a/src/mad/sh/scripts_common.sh +++ b/src/mad/sh/scripts_common.sh @@ -331,7 +331,7 @@ function force_shutdown { if [ "x$error" != "x0" ]; then if [ "$FORCE_DESTROY" = "yes" ]; then log_error "Timeout shutting down $deploy_id. Destroying it" - $($command) + ret=$($command) sleep 2 else error_message "Timed out shutting down $deploy_id"