Vered Volansky has posted comments on this change.
Change subject: core: Refactor SP validation out of ImagesHandler
......................................................................
Patch Set 1: (2 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmTemplateCommand.java
Line 198: diskInfoDestinationMap.put(image.getId(), image);
Line 199: }
Line 200: }
Line 201:
Line 202: // Check storage pool (spId was set in the constructor
Fair enough
Line 203: if (!validate(new
StoragePoolValidator(getStoragePool()).isUp())) {
Line 204: return false;
Line 205: }
Line 206:
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmPoolCommandBase.java
Line 208:
Line 209: ValidationResult spUpResult = new
StoragePoolValidator(sp).isUp();
Line 210: if (!spUpResult.isValid()) {
Line 211: messages.add(spUpResult.getMessage().name());
Line 212: returnValue = false;
Sure, just remember to do it :)
Line 213: }
Line 214:
Line 215: if (returnValue) {
Line 216: returnValue =
--
To view, visit http://gerrit.ovirt.org/11323
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I5caa3724fb73c8fa8932c8071f6d27a78d681bb3
Gerrit-PatchSet: 1
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: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches