liron aravot has posted comments on this change.
Change subject: core: setStorage once in AddSanStorageDomainCommand
......................................................................
Patch Set 1: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddSANStorageDomainCommand.java
Line 40: // set domain storage to empty because not nullable in db and
for shared
Line 41: // status to be locked
Line 42: getStorageDomain().setStorage("");
Line 43: addStorageDomainInDb();
Line 44: if(StringUtils.isEmpty(storage)) {
suggestion - perhaps the whole line 39 "logic" can move here and to be merged
to one statement. as the storage variable isn't used before.
Line 45: storage = createVG();
Line 46: }
Line 47: getStorageDomain().setStorage(storage);
Line 48: if (StringUtils.isNotEmpty(getStorageDomain().getStorage()) &&
(addStorageDomainInIrs())) {
--
To view, visit http://gerrit.ovirt.org/14518
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Idc63f032f274437e0ffbc14392b19e9239fcb8c0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: liron aravot <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches