From e983246cd4caa91f5d6bc86b7f211682694d4972 Mon Sep 17 00:00:00 2001 From: miguelaferreira Date: Tue, 2 Jun 2015 14:23:31 +0200 Subject: [PATCH] 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 This closes #348 --- scripts/storage/secondary/cloud-install-sys-tmplt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/storage/secondary/cloud-install-sys-tmplt b/scripts/storage/secondary/cloud-install-sys-tmplt index 25a7dae27fb..fe700d3e861 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|/*$||'`