mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
Findbugs finding : Incorrect use of equality
This commit is contained in:
parent
cc98125067
commit
3bd38eb17e
@ -166,7 +166,7 @@ public class VmwareServerDiscoverer extends DiscovererBase implements Discoverer
|
||||
_clusterDetailsDao.persist(clusterId, clusterDetails);
|
||||
}
|
||||
String updatedInventoryPath = validateCluster(url, vmwareDc);
|
||||
if (url.getPath() != updatedInventoryPath) {
|
||||
if (!url.getPath().equals(updatedInventoryPath)) {
|
||||
// If url from API doesn't specify DC then update url in database with DC associated with this zone.
|
||||
clusterDetails.put("url", url.getScheme() + "://" + url.getHost() + updatedInventoryPath);
|
||||
_clusterDetailsDao.persist(clusterId, clusterDetails);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user