You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by re...@apache.org on 2015/06/02 16:02:09 UTC

git commit: updated refs/heads/master to e983246

Repository: cloudstack
Updated Branches:
  refs/heads/master f34124688 -> e983246cd


Set the url accordingly when installing a system vm template

The script that installs the system vm templates sets the uuid column
for the template being installed, however it does not set the respective
url column. This commit changes that.

Signed-off-by: Remi Bergsma <ap...@remi.nl>

This closes #348


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

Branch: refs/heads/master
Commit: e983246cd4caa91f5d6bc86b7f211682694d4972
Parents: f341246
Author: miguelaferreira <mi...@me.com>
Authored: Tue Jun 2 14:23:31 2015 +0200
Committer: Remi Bergsma <ap...@remi.nl>
Committed: Tue Jun 2 16:00:15 2015 +0200

----------------------------------------------------------------------
 scripts/storage/secondary/cloud-install-sys-tmplt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e983246c/scripts/storage/secondary/cloud-install-sys-tmplt
----------------------------------------------------------------------
diff --git a/scripts/storage/secondary/cloud-install-sys-tmplt b/scripts/storage/secondary/cloud-install-sys-tmplt
index 25a7dae..fe700d3 100755
--- a/scripts/storage/secondary/cloud-install-sys-tmplt
+++ b/scripts/storage/secondary/cloud-install-sys-tmplt
@@ -184,7 +184,7 @@ fi
 _uuid=$(uuidgen)
 localfile=$_uuid.$ext
 
-_res=(`mysql -h $dbHost --user=$dbUser --password=$dbPassword --skip-column-names -U cloud -e "update cloud.vm_template set uuid=\"$_uuid\" where id=\"$templateId\""`)
+_res=(`mysql -h $dbHost --user=$dbUser --password=$dbPassword --skip-column-names -U cloud -e "update cloud.vm_template set uuid=\"$_uuid\", url=\"$url\" where id=\"$templateId\""`)
 
 mntpoint=`echo "$mntpoint" | sed 's|/*$||'`