CS-15256: Unable to associate cluster with Nexus VSM upon a retry if addCluster command fails the first time

Description:

	Putting in code to clean up stale VSM records in case
	addCluster fails to communicate with the vCenter server.
This commit is contained in:
Vijayendra Bhamidipati 2012-06-18 14:59:40 -07:00
parent 6c8425b279
commit 77b2b4a372
1 changed files with 1 additions and 0 deletions

View File

@ -576,6 +576,7 @@ public class ResourceManagerImpl implements ResourceManager, ResourceService, Ma
if (!success) {
_clusterDetailsDao.deleteDetails(clusterId);
_clusterDao.remove(clusterId);
_clusterVSMDao.removeByClusterId(clusterId);
}
}
}