From 37e8d9d86119458262aa6e7fde5a19450df41c02 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Sat, 17 Aug 2013 21:47:57 +0200 Subject: [PATCH] feature #2262: fix default substitution --- src/datastore_mad/remotes/iscsi/monitor | 2 +- src/datastore_mad/remotes/lvm/monitor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datastore_mad/remotes/iscsi/monitor b/src/datastore_mad/remotes/iscsi/monitor index b274511616..10c3929310 100755 --- a/src/datastore_mad/remotes/iscsi/monitor +++ b/src/datastore_mad/remotes/iscsi/monitor @@ -49,7 +49,7 @@ done < <($XPATH /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/HOST \ /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/VG_NAME) HOST="${XPATH_ELEMENTS[j++]}" -VG_NAME="${XPATH_ELEMENTS[j++]-$VG_NAME}" +VG_NAME="${XPATH_ELEMENTS[j++]:-$VG_NAME}" if [ -z "$HOST" ]; then error_message "Datastore template missing 'HOST' attribute." diff --git a/src/datastore_mad/remotes/lvm/monitor b/src/datastore_mad/remotes/lvm/monitor index 006a24bb45..f2f356ee24 100755 --- a/src/datastore_mad/remotes/lvm/monitor +++ b/src/datastore_mad/remotes/lvm/monitor @@ -49,7 +49,7 @@ done < <($XPATH /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/HOST \ /DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/VG_NAME) HOST="${XPATH_ELEMENTS[j++]}" -VG_NAME="${XPATH_ELEMENTS[j++]-$VG_NAME}" +VG_NAME="${XPATH_ELEMENTS[j++]:-$VG_NAME}" if [ -z "$HOST" ]; then error_message "Datastore template missing 'HOST' attribute."