From 0acce2c518cfca911d1ebcda80a62396b3cbec8f Mon Sep 17 00:00:00 2001 From: Min Chen Date: Fri, 14 Jun 2013 15:14:41 -0700 Subject: [PATCH] Remove extra / for template install path during sync. --- core/src/com/cloud/storage/template/TemplateLocation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/cloud/storage/template/TemplateLocation.java b/core/src/com/cloud/storage/template/TemplateLocation.java index 34626e52bda..161a663981d 100644 --- a/core/src/com/cloud/storage/template/TemplateLocation.java +++ b/core/src/com/cloud/storage/template/TemplateLocation.java @@ -159,7 +159,7 @@ public class TemplateLocation { public TemplateProp getTemplateInfo() { TemplateProp tmplInfo = new TemplateProp(); tmplInfo.id = Long.parseLong(_props.getProperty("id")); - tmplInfo.installPath = _templatePath + File.separator + _props.getProperty("filename"); + tmplInfo.installPath = _templatePath + _props.getProperty("filename"); // _templatePath endsWith / if (_resourceType == ResourceType.VOLUME){ tmplInfo.installPath = tmplInfo.installPath.substring(tmplInfo.installPath.indexOf("volumes")); }else {