mirror of https://github.com/apache/cloudstack.git
fix for Find Bugs findings on troubling issues: returning null when expected is boolean; adding 6 unit tests and fix 1 in the KVMFencer; comparing objects with == instead of equals()
Signed-off-by: Daan Hoogland <dhoogland@schubergphilis.com>
This commit is contained in:
parent
cefd4ce3be
commit
9045e41483
|
|
@ -884,7 +884,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
|||
Set<VIF> dom0Vifs = dom0.getVIFs(conn);
|
||||
for (VIF vif : dom0Vifs) {
|
||||
vif.getRecord(conn);
|
||||
if (vif.getNetwork(conn).getUuid(conn) == nw.getUuid(conn)) {
|
||||
if (vif.getNetwork(conn).getUuid(conn).equals(nw.getUuid(conn))) {
|
||||
dom0vif = vif;
|
||||
s_logger.debug("A VIF for dom0 has already been found - No need to create one");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue