Change in ovirt-engine[master]: core: dont use getVmPayload query for updateVmVersionCommand

ofrenkel at redhat.com ofrenkel at redhat.com
Tue Oct 21 06:47:11 UTC 2014


Omer Frenkel has submitted this change and it was merged.

Change subject: core: dont use getVmPayload query for updateVmVersionCommand
......................................................................


core: dont use getVmPayload query for updateVmVersionCommand

when calling getVmPayloadQuery from updateVmVersionCommand there is NPE
because the current-user is null, since this command is executed
internaly.

replaced the call to the query with a simple db query

Change-Id: I37472aff69087e23cf4206819c84c0e0f115fcc2
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1148379
Signed-off-by: Omer Frenkel <ofrenkel at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmVersionCommand.java
1 file changed, 14 insertions(+), 8 deletions(-)

Approvals:
  Omer Frenkel: Verified
  Arik Hadas: Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/34281
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I37472aff69087e23cf4206819c84c0e0f115fcc2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list