Updated Branches: refs/heads/4.2 3be560558 -> 4f3e648f4 refs/heads/master d771e3fa5 -> b0c67a3cc
CLOUDSTACK-4295 : Template Physical size is stored as size in template.properties. physicalsize param does not exist in template.properties Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4f3e648f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4f3e648f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4f3e648f Branch: refs/heads/4.2 Commit: 4f3e648f456a52cb7b8d3545bfa0d060e0d2256c Parents: 903b92f Author: Kishan Kavala <[email protected]> Authored: Wed Aug 14 17:28:12 2013 +0530 Committer: Kishan Kavala <[email protected]> Committed: Wed Aug 14 17:28:22 2013 +0530 ---------------------------------------------------------------------- core/src/com/cloud/storage/template/TemplateLocation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4f3e648f/core/src/com/cloud/storage/template/TemplateLocation.java ---------------------------------------------------------------------- diff --git a/core/src/com/cloud/storage/template/TemplateLocation.java b/core/src/com/cloud/storage/template/TemplateLocation.java index 161a663..2ae438c 100644 --- a/core/src/com/cloud/storage/template/TemplateLocation.java +++ b/core/src/com/cloud/storage/template/TemplateLocation.java @@ -171,8 +171,8 @@ public class TemplateLocation { if (_props.getProperty("virtualsize") != null) { tmplInfo.size = Long.parseLong(_props.getProperty("virtualsize")); } - if (_props.getProperty("physicalSize") != null) { - tmplInfo.physicalSize = Long.parseLong(_props.getProperty("physicalSize")); + if (_props.getProperty("size") != null) { + tmplInfo.physicalSize = Long.parseLong(_props.getProperty("size")); } return tmplInfo;
