mirror of https://github.com/apache/cloudstack.git
Findbugs finding : Incorrect use of equality
(cherry picked from commit 10cc5645e8b9713bc7c86d543413d396ce203cc6)
(cherry picked from commit f18c5a1910)
Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
This commit is contained in:
parent
fd391845cf
commit
1be40d6926
|
|
@ -168,7 +168,7 @@ public class VmwareServerDiscoverer extends DiscovererBase implements
|
|||
_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…
Reference in New Issue