Liron Aravot has posted comments on this change.
Change subject: core: ImagesHandler: Remove SD status validation
......................................................................
Patch Set 4: (2 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ExportVmCommand.java
Line 154:
Line 155: // Check the source storage domains exist and are up
Line 156: for (Guid sdId :
ImagesHandler.getAllDomainsIds(getDisksBasedOnImage())) {
Line 157: StorageDomainValidator sdValidator = new
StorageDomainValidator(getStorageDomain(sdId));
Line 158: if (validate(sdValidator.isDomainExistAndActive())) {
shouldn't this be !validate?
Line 159: return false;
Line 160: }
Line 161: }
Line 162:
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/StorageDomainCommandBase.java
Line 190:
Line 191: protected boolean
validateStorageDoaminsActive(Collection<DiskImage> disksList) {
Line 192: for (Guid sdId : ImagesHandler.getAllDomainsIds(disksList)) {
Line 193: StorageDomainValidator sdValidator = new
StorageDomainValidator(getStorageDomain(sdId));
Line 194: if (validate(sdValidator.isDomainExistAndActive())) {
shouldn't be !validate?
Line 195: return false;
Line 196: }
Line 197: }
Line 198: return true;
--
To view, visit http://gerrit.ovirt.org/11487
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Id632168da64832a9c9393b81e552112240e974c0
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches