Remove extra / for template install path during sync.

This commit is contained in:
Min Chen 2013-06-14 15:14:41 -07:00
parent bb85a564da
commit 0acce2c518

View File

@ -159,7 +159,7 @@ public class TemplateLocation {
public TemplateProp getTemplateInfo() { public TemplateProp getTemplateInfo() {
TemplateProp tmplInfo = new TemplateProp(); TemplateProp tmplInfo = new TemplateProp();
tmplInfo.id = Long.parseLong(_props.getProperty("id")); 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){ if (_resourceType == ResourceType.VOLUME){
tmplInfo.installPath = tmplInfo.installPath.substring(tmplInfo.installPath.indexOf("volumes")); tmplInfo.installPath = tmplInfo.installPath.substring(tmplInfo.installPath.indexOf("volumes"));
}else { }else {