Maor Lipchuk has posted comments on this change.

Change subject: core: Add a validation when deactivate ISO domain.
......................................................................


Patch Set 16:

(1 comment)

http://gerrit.ovirt.org/#/c/20331/16/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/DeactivateStorageDomainCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/DeactivateStorageDomainCommand.java:

Line 156:         List<String> vmNames = new LinkedList<>();
Line 157:         for (VmStatic vmStatic : vms) {
Line 158:             VmDynamic vmDynamic = 
getVmDynamicDAO().get(vmStatic.getId());
Line 159:             if (getVmDynamicDAO().get(vmStatic.getId()).getStatus() 
!= VMStatus.Down
Line 160:                     && StringUtils.isEmpty(vmDynamic.getCurrentCd() 
!= null ? vmDynamic.getCurrentCd()
> should be probably StringUtils.isNotEmpty because non empty string signifie
yes, good catch, fixed
Line 161:                             : vmStatic.getIsoPath())) {
Line 162:                 vmNames.add(vmStatic.getName());
Line 163:             }
Line 164:         }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I47c1a8155762ecd0b04bb17676151946982bb919
Gerrit-PatchSet: 16
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Cheryn Tan <cheryn...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Itamar Heim <ih...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Martin Betak <mbe...@redhat.com>
Gerrit-Reviewer: Sergey Gotliv <sgot...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Vitor de Lima <vitor.l...@eldorado.org.br>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to