CLOUDSTACK-4707: "sourcetemplateid" field is not getting set for derived templates Template created from a volume or snapshot did not have the sourcetemplateid field set in vm_template table.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bb749377 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bb749377 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bb749377 Branch: refs/heads/ui-restyle Commit: bb7493775c202f9a0345482b7a9cb478ed48ba11 Parents: 2799ee3 Author: Harikrishna Patnala <harikrishna.patn...@citrix.com> Authored: Wed Oct 9 16:32:09 2013 +0530 Committer: Kishan Kavala <kis...@cloud.com> Committed: Thu Oct 10 12:20:40 2013 +0530 ---------------------------------------------------------------------- engine/schema/src/com/cloud/storage/VolumeVO.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bb749377/engine/schema/src/com/cloud/storage/VolumeVO.java ---------------------------------------------------------------------- diff --git a/engine/schema/src/com/cloud/storage/VolumeVO.java b/engine/schema/src/com/cloud/storage/VolumeVO.java index 43a8d4c..df7cfd4 100755 --- a/engine/schema/src/com/cloud/storage/VolumeVO.java +++ b/engine/schema/src/com/cloud/storage/VolumeVO.java @@ -155,7 +155,7 @@ public class VolumeVO implements Volume { private Long vmSnapshotChainSize; @Column(name = "iso_id") - private long isoId; + private Long isoId; @Transient // @Column(name="reservation") @@ -571,7 +571,7 @@ public class VolumeVO implements Volume { return this.isoId; } - public void setIsoId(long isoId) { + public void setIsoId(Long isoId) { this.isoId =isoId; }