CLOUDSTACK-7677: 4.2 systemvm template job failing

Fixed the trailing and leading whitespaces in the hdd path

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Harikrishna Patnala 2014-10-07 14:28:09 +05:30 committed by SrikanteswaraRao Talluri
parent 421c8461f1
commit 2ad26d7723
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ done
# Get appliance uuids
machine_uuid=`vboxmanage showvminfo $appliance | grep UUID | head -1 | awk '{print $2}'`
hdd_uuid=`vboxmanage showvminfo $appliance | grep vdi | head -1 | awk '{print $8}' | cut -d ')' -f 1`
hdd_path=`vboxmanage list hdds | grep "$appliance\/" | grep vdi | cut -c 14-`
hdd_path=`vboxmanage list hdds | grep "$appliance\/" | grep vdi | cut -c 14- | sed -e 's/^ *//' -e 's/ *$//'`
# Remove any shared folder
shared_folders=`vboxmanage showvminfo $appliance | grep Name | grep Host`