Hello Arik Hadas,
I'd like you to do a code review. Please visit
http://gerrit.ovirt.org/31828
to review the following change.
Change subject: core: fix cpu profile validation on import template
......................................................................
core: fix cpu profile validation on import template
The cluster setting was missing on the template, thus we'll use the
destination cluster.
Change-Id: I5530101a10811f1fa4a4592d369c5bd93285bfc2
Signed-off-by: Arik Hadas <[email protected]>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmTemplateCommand.java
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/28/31828/1
diff --git
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmTemplateCommand.java
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmTemplateCommand.java
index 9b6d1c3..f299fb7 100644
---
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmTemplateCommand.java
+++
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmTemplateCommand.java
@@ -565,6 +565,7 @@
}
protected boolean setAndValidateCpuProfile() {
+ getVmTemplate().setVdsGroupId(getVdsGroupId());
return
validate(CpuProfileHelper.setAndValidateCpuProfile(getVmTemplate(),
getVdsGroup().getcompatibility_version()));
}
--
To view, visit http://gerrit.ovirt.org/31828
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5530101a10811f1fa4a4592d369c5bd93285bfc2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches