Maor Lipchuk has posted comments on this change.

Change subject: core: Add a CDA on attach to an uninitialized Data Center
......................................................................


Patch Set 6:

(1 comment)

http://gerrit.ovirt.org/#/c/36454/6/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddStoragePoolWithStoragesCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddStoragePoolWithStoragesCommand.java:

Line 312: 
Line 313:     private boolean isDomainAttachedToDifferentStoragePool() {
Line 314:         if (getStoragePool().getStatus() == 
StoragePoolStatus.Uninitialized) {
Line 315:             for (Guid storageDomainId : 
getParameters().getStorages()) {
Line 316:                 StorageDomain domain = 
DbFacade.getInstance().getStorageDomainDao().get(storageDomainId);
> Just use getStorageDomainDao
done
Line 317:                 if (domain.getStorageDomainType().isDataDomain() && 
isStorageDomainAttachedToStoragePool(domain)) {
Line 318:                     return 
failCanDoAction(VdcBllMessages.ERROR_CANNOT_ADD_STORAGE_DOMAIN_WITH_ATTACHED_DATA_DOMAIN);
Line 319:                 }
Line 320:             }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I13ec66cc7ff4773221cc994cb4f0be1886ed9a6b
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: [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

Reply via email to