Skip to content

Commit 93172df

Browse files
anshulgangwarSateesh Chodapuneedi
authored andcommitted
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>
1 parent 7894386 commit 93172df

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugins/storage/volume/default/src/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackPrimaryDataStoreLifeCycleImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ public boolean deleteDataStore(DataStore store) {
472472
HypervisorType hType = null;
473473
if(hostPoolRecords.size() > 0 ){
474474
hType = getHypervisorType(hostPoolRecords.get(0).getHostId());
475+
} else {
476+
return false;
475477
}
476478

477479
// Remove the SR associated with the Xenserver

0 commit comments

Comments
 (0)