CLOUDSTACK-3994: fix for Wrong error notification is generated when Primary storage is added with wrong path

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
This commit is contained in:
Anshul Gangwar 2013-10-04 15:05:50 +05:30 committed by Sateesh Chodapuneedi
parent 789438651a
commit 93172df556

View File

@ -472,6 +472,8 @@ public class CloudStackPrimaryDataStoreLifeCycleImpl implements PrimaryDataStore
HypervisorType hType = null;
if(hostPoolRecords.size() > 0 ){
hType = getHypervisorType(hostPoolRecords.get(0).getHostId());
} else {
return false;
}
// Remove the SR associated with the Xenserver