Skip to content

Commit

Permalink
Fix of an error which caused problem reported on opennebula:
Browse files Browse the repository at this point in the history
  • Loading branch information
lejmr committed Jul 8, 2016
1 parent 2e7cdc1 commit d037e06
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions datastore/emc/clone
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ fi
DRIVER_PATH=$(dirname $0)
source ${DRIVER_PATH}/../libfs.sh
source ${DRIVER_PATH}/emc.conf
source ${DRIVER_PATH}/func.sh

# -------- Get cp and datastore arguments from OpenNebula core ------------

Expand All @@ -42,10 +41,10 @@ ID=$2
XPATH="${DRIVER_PATH}/../xpath.rb -b $DRV_ACTION"

unset i j XPATH_ELEMENTS

while IFS= read -r -d '' element; do
XPATH_ELEMENTS[i++]="$element"
done < <($XPATH /DS_DRIVER_ACTION_DATA/IMAGE/CLONING_ID \
done < <($XPATH /DS_DRIVER_ACTION_DATA/IMAGE/PATH \
/DS_DRIVER_ACTION_DATA/IMAGE/SIZE \
/DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/CLI_HOSTNAME \
/DS_DRIVER_ACTION_DATA/DATASTORE/TEMPLATE/CLI_USER \
Expand All @@ -63,8 +62,7 @@ BLOCK_SIZE="${XPATH_ELEMENTS[j++]:-$BLOCK_SIZE}"
RAID_GROUP_ID="${XPATH_ELEMENTS[j++]}"
RAID_GROUP_RAIDLEVEL="${XPATH_ELEMENTS[j++]}"


NAVISECCLI="/opt/Navisphere/bin/naviseccli -User $CLI_USER -Password $CLI_PASSWORD -Address $CLI_HOSTNAME -Scope 0 "
source ${DRIVER_PATH}/func.sh

# Semaphor - LOCK
semaphor_on
Expand Down

0 comments on commit d037e06

Please sign in to comment.