Skip to content

Commit

Permalink
B #6487: Fix error on ssh/clone script (#3054)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Mosteiro <[email protected]>
  • Loading branch information
Aletibazo authored May 9, 2024
1 parent 75031db commit f433059
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tm_mad/ssh/clone
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ while IFS= read -r -d '' element; do
done < <(onevm show -x $VMID| $XPATH \
/VM/TEMPLATE/DISK[DISK_ID=$DISK_ID]/SIZE \
/VM/TEMPLATE/DISK[DISK_ID=$DISK_ID]/ORIGINAL_SIZE \
/VM/HISTORY_RECORDS/HISTORY[last\(\)]/DS_ID \
/VM/TEMPLATE/DISK[DISK_ID=$DISK_ID]/SPARSE)

SIZE="${XPATH_ELEMENTS[j++]}"
ORIGINAL_SIZE="${XPATH_ELEMENTS[j++]}"
SYS_DS_ID="${XPATH_ELEMENTS[j++]}"
SPARSE="${XPATH_ELEMENTS[j++]}"

#-------------------------------------------------------------------------------
Expand Down

0 comments on commit f433059

Please sign in to comment.