CLOUDSTACK-4295 : Template Physical size is stored as size in template.properties. physicalsize param does not exist in template.properties

This commit is contained in:
Kishan Kavala 2013-08-14 17:28:12 +05:30
parent 21831211f6
commit b0c67a3cc5

View File

@ -171,8 +171,8 @@ public class TemplateLocation {
if (_props.getProperty("virtualsize") != null) { if (_props.getProperty("virtualsize") != null) {
tmplInfo.size = Long.parseLong(_props.getProperty("virtualsize")); tmplInfo.size = Long.parseLong(_props.getProperty("virtualsize"));
} }
if (_props.getProperty("physicalSize") != null) { if (_props.getProperty("size") != null) {
tmplInfo.physicalSize = Long.parseLong(_props.getProperty("physicalSize")); tmplInfo.physicalSize = Long.parseLong(_props.getProperty("size"));
} }
return tmplInfo; return tmplInfo;