From 666c0eef53781acd60ffbcf79d1343749cc23eef Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Thu, 28 Jun 2012 17:23:46 +0200 Subject: [PATCH] Feature #1254: load iscsi.conf from all the tm iscsi scripts --- src/tm_mad/iscsi/clone | 2 ++ src/tm_mad/iscsi/ln | 3 +++ src/tm_mad/iscsi/mvds | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/tm_mad/iscsi/clone b/src/tm_mad/iscsi/clone index 384eb7379c..ccce7f0df8 100755 --- a/src/tm_mad/iscsi/clone +++ b/src/tm_mad/iscsi/clone @@ -40,6 +40,8 @@ DRIVER_PATH=$(dirname $0) . $TMCOMMON +source ${DRIVER_PATH}/../../datastore/iscsi/iscsi.conf + #------------------------------------------------------------------------------- # Set src, dst path and dir #------------------------------------------------------------------------------- diff --git a/src/tm_mad/iscsi/ln b/src/tm_mad/iscsi/ln index 3a19daacab..c2529ee253 100755 --- a/src/tm_mad/iscsi/ln +++ b/src/tm_mad/iscsi/ln @@ -38,6 +38,9 @@ fi . $TMCOMMON +DRIVER_PATH=$(dirname $0) + +source ${DRIVER_PATH}/../../datastore/iscsi/iscsi.conf #------------------------------------------------------------------------------- # Set dst path and dir #------------------------------------------------------------------------------- diff --git a/src/tm_mad/iscsi/mvds b/src/tm_mad/iscsi/mvds index 6a89f9ae0c..53d7f87cfc 100755 --- a/src/tm_mad/iscsi/mvds +++ b/src/tm_mad/iscsi/mvds @@ -40,6 +40,8 @@ DRIVER_PATH=$(dirname $0) . $TMCOMMON +source ${DRIVER_PATH}/../../datastore/iscsi/iscsi.conf + SRC_HOST=`arg_host $SRC` NEW_IQN="$DST"