Repository: cloudstack
Updated Branches:
  refs/heads/4.2 421c8461f -> 2ad26d772


CLOUDSTACK-7677: 4.2 systemvm template job failing

Fixed the trailing and leading whitespaces in the hdd path

Signed-off-by: SrikanteswaraRao Talluri <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2ad26d77
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2ad26d77
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2ad26d77

Branch: refs/heads/4.2
Commit: 2ad26d772334e8788f4ecf02f3f4fb05ff879f72
Parents: 421c846
Author: Harikrishna Patnala <[email protected]>
Authored: Tue Oct 7 14:28:09 2014 +0530
Committer: SrikanteswaraRao Talluri <[email protected]>
Committed: Tue Oct 7 15:05:26 2014 +0530

----------------------------------------------------------------------
 tools/appliance/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2ad26d77/tools/appliance/build.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index f01cff6..595dd58 100644
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -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`

Reply via email to