From 098fe29463ce98ef6f039c949e67a0a0bbe897c0 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Fri, 16 Sep 2016 17:41:39 +0200 Subject: [PATCH] B #4781: move ssh_exec_and_log_no_exit to library --- src/mad/sh/scripts_common.sh | 19 ++++++++++++++++--- src/tm_mad/ceph/mkimage | 22 ---------------------- 2 files changed, 16 insertions(+), 25 deletions(-) diff --git a/src/mad/sh/scripts_common.sh b/src/mad/sh/scripts_common.sh index 4f9e7f6909..84546daade 100644 --- a/src/mad/sh/scripts_common.sh +++ b/src/mad/sh/scripts_common.sh @@ -330,8 +330,8 @@ function mkfs_command { fi } -#This function executes $2 at $1 host and report error $3 -function ssh_exec_and_log +#This function executes $2 at $1 host and report error $3 but does not exit +function ssh_exec_and_log_no_error { SSH_EXEC_ERR=`$SSH $1 bash -s 2>&1 1>/dev/null <&1 1>/dev/null <