Omer Frenkel has uploaded a new change for review. Change subject: core: don't check for vm.getVdsGroupId on import vm ......................................................................
core: don't check for vm.getVdsGroupId on import vm ImportVmCommand shouldn't expect a value in vm.getVdsGroupId as it is supplied in the parameters separately. Change-Id: I21610313a85fa52a14b1ddf15b20e2ca73944e06 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1095223 Signed-off-by: Omer Frenkel <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/98/27998/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java index 1352db9..61c3372 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmCommand.java @@ -178,7 +178,7 @@ protected boolean canDoAction() { Map<Guid, StorageDomain> domainsMap = new HashMap<Guid, StorageDomain>(); - if (getVdsGroup() == null || getVm().getVdsGroupId() == null) { + if (getVdsGroup() == null) { addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_CAN_NOT_BE_EMPTY); return false; } -- To view, visit http://gerrit.ovirt.org/27998 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I21610313a85fa52a14b1ddf15b20e2ca73944e06 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Omer Frenkel <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
