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/b0c67a3c Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b0c67a3c Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b0c67a3c Branch: refs/heads/master Commit: b0c67a3cc58d12fbf1139b465587a80142e830fc Parents: 2183121 Author: Kishan Kavala <[email protected]> Authored: Wed Aug 14 17:28:12 2013 +0530 Committer: Kishan Kavala <[email protected]> Committed: Wed Aug 14 17:34:14 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/b0c67a3c/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;
