Change in ovirt-engine[master]: utils: Remove extra parameters in copyVmDevices

mperina at redhat.com mperina at redhat.com
Wed Jan 20 11:20:20 UTC 2016


Martin Peřina has submitted this change and it was merged.

Change subject: utils: Remove extra parameters in copyVmDevices
......................................................................


utils: Remove extra parameters in copyVmDevices

Passed `dstVm` was only used to getStaticData() which was always the same as
another parameter `dstVmBase`.

Additionally the dstIsVm parameter value can simply be obtained by checking the
type of passed dstVmBase. This will simplify consequent patches.

Change-Id: Ida90a2cca906a42b86136840a430765c9ae0b7b7
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1281428
Signed-off-by: Martin Betak <mbetak at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmAndCloneImageCommand.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/utils/VmDeviceUtils.java
2 files changed, 5 insertions(+), 8 deletions(-)

Approvals:
  Martin Peřina: Looks good to me, approved
  Jenkins CI: Passed CI tests
  Martin Betak: Verified
  Shmuel Leib Melamud: Looks good to me, but someone else must approve



-- 
To view, visit https://gerrit.ovirt.org/52373
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ida90a2cca906a42b86136840a430765c9ae0b7b7
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Betak <mbetak at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Betak <mbetak at redhat.com>
Gerrit-Reviewer: Martin Peřina <mperina at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Shahar Havivi <shavivi at redhat.com>
Gerrit-Reviewer: Shmuel Leib Melamud <smelamud at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list