From 9474629d31c22ad121914bcb50f6863723d255a4 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 13 Feb 2017 12:16:10 +0100 Subject: [PATCH] Check remote operation before remote cmd run --- dev/ofunctions.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 988cc7e..1fa1124 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -2,8 +2,8 @@ #### OFUNCTIONS FULL SUBSET #### #### OFUNCTIONS MINI SUBSET #### -_OFUNCTIONS_VERSION=2.1-RC2+dev -_OFUNCTIONS_BUILD=2017021003 +_OFUNCTIONS_VERSION=2.1-RC3+dev +_OFUNCTIONS_BUILD=2017021301 #### _OFUNCTIONS_BOOTSTRAP SUBSET #### _OFUNCTIONS_BOOTSTRAP=true #### _OFUNCTIONS_BOOTSTRAP SUBSET END #### @@ -1297,6 +1297,12 @@ function RunRemoteCommand { local hardMaxTime="${2}" # Max time to wait for command to compleet __CheckArguments 2 $# "$@" #__WITH_PARANOIA_DEBUG + + if [ "$REMOTE_OPERATION" != "yes" ]; then + Logger "Ignoring remote command [$command] because remote host is not configured." "WARN" + return 0 + fi + CheckConnectivity3rdPartyHosts CheckConnectivityRemoteHost if [ $_DRYRUN == true ]; then