Change in ovirt-engine[master]: core: fix import glance image as template

derez at redhat.com derez at redhat.com
Tue Jan 20 16:39:15 UTC 2015


Daniel Erez has submitted this change and it was merged.

Change subject: core: fix import glance image as template
......................................................................


core: fix import glance image as template

Importing Glance image as a template from
rest-api leads to an NPE due to null user in
AddVmTemplateCommand [getCurrentUser() is null].

Fixed by ensuring a valid user from the parameters
(instead of setting on ImportRepoImageCommand ctr).

Change-Id: I5a34e200ea135469d174f337b802c83a3a1e9052
Signed-off-by: Daniel Erez <derez at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmTemplateCommand.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportRepoImageCommand.java
2 files changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Daniel Erez: Verified
  Allon Mureinik: Looks good to me, but someone else must approve
  Oved Ourfali: Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I5a34e200ea135469d174f337b802c83a3a1e9052
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list