Vered Volansky has posted comments on this change.
Change subject: engine: Disk interface validation
......................................................................
Patch Set 9: Code-Review+1
(1 comment)
I'd like you to address my comment, other than that looks good.
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/DiskValidator.java
Line 135: * @param osId - OS id
Line 136: * @param version - Version
Line 137: * @return
Line 138: */
Line 139: public static boolean isDiskInterfaceSupportedByOs (DiskInterface
diskInterface, int osId, Version version) {
This whole method can be:
return getSupportedDiskInterfaces(osId, version).contains(diskInterface);
Line 140: List<DiskInterface> supportedDiskInterfaces =
Line 141: getSupportedDiskInterfaces(osId, version);
Line 142:
Line 143: if (!supportedDiskInterfaces.contains(diskInterface)) {
--
To view, visit http://gerrit.ovirt.org/18648
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ibe095557089aa5670c50eaa120eac9f60e13aea0
Gerrit-PatchSet: 9
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gustavo Frederico Temple Pedrosa <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Frank Kobzik <[email protected]>
Gerrit-Reviewer: Gustavo Frederico Temple Pedrosa
<[email protected]>
Gerrit-Reviewer: Leonardo Bianconi <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Tomas Jelinek <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
Gerrit-Reviewer: Vitor de Lima <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches