From 17f15593ed83826331fcac49b4357d084d2f6de8 Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Mon, 30 Apr 2018 13:58:23 +0200 Subject: [PATCH] Small fixes --- sources/lib/platform/linux/check_linux_vz_ct_status.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sources/lib/platform/linux/check_linux_vz_ct_status.sh b/sources/lib/platform/linux/check_linux_vz_ct_status.sh index 1ef9844..f0133d3 100644 --- a/sources/lib/platform/linux/check_linux_vz_ct_status.sh +++ b/sources/lib/platform/linux/check_linux_vz_ct_status.sh @@ -25,6 +25,7 @@ # @(#) 2017-04-01: initial version [Patrick Van der Veken] # @(#) 2017-05-07: made checks more detailed for hc_log() [Patrick Van der Veken] # @(#) 2017-06-08: return 1 on error [Patrick Van der Veken] +# @(#) 2018-04-30: fixes on variable names Patrick Van der Veken] # ----------------------------------------------------------------------------- # DO NOT CHANGE THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! #****************************************************************************** @@ -35,7 +36,7 @@ function check_linux_vz_ct_status # ------------------------- CONFIGURATION starts here ------------------------- typeset _CONFIG_FILE="${CONFIG_DIR}/$0.conf" typeset _VZLIST_BIN="/usr/sbin/vzlist" -typeset _VERSION="2017-06-08" # YYYY-MM-DD +typeset _VERSION="2018-04-30" # YYYY-MM-DD typeset _SUPPORTED_PLATFORMS="Linux" # uname -s match # ------------------------- CONFIGURATION ends here --------------------------- @@ -139,10 +140,10 @@ do if [[ "${_CT_RUN_STATUS}" = "${_CT_CFG_STATUS}" ]] then - _MSG="container ${_CT_ID} has a correct status [{$_CT_RUN_STATUS}]" + _MSG="container ${_CT_ID} has a correct status [${_CT_RUN_STATUS}]" _STC=0 else - _MSG="container ${_CT_ID} has a wrong status [{$_CT_RUN_STATUS}]" + _MSG="container ${_CT_ID} has a wrong status [${_CT_RUN_STATUS}]" _STC=1 fi log_hc "$0" ${_STC} "${_MSG}" "${_CT_RUN_STATUS}" "${_CT_CFG_STATUS}"