Skip to content

Commit 1b3e7f6

Browse files
Update proper destroy status when SSVM is destroyed. (apache#5908)
1 parent fde34df commit 1b3e7f6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

services/secondary-storage/controller/src/main/java/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,12 +1036,10 @@ public boolean destroySecStorageVm(long vmId) {
10361036
if (host != null) {
10371037
s_logger.debug(String.format("Removing host entry for secondary storage VM [%s].", vmId));
10381038
_hostDao.remove(host.getId());
1039-
10401039
_tmplStoreDao.expireDnldUrlsForZone(host.getDataCenterId());
10411040
_volumeStoreDao.expireDnldUrlsForZone(host.getDataCenterId());
1042-
return true;
10431041
}
1044-
return false;
1042+
return true;
10451043
} catch (ResourceUnavailableException e) {
10461044
s_logger.error(String.format("Unable to expunge secondary storage [%s] due to [%s].", ssvm.toString(), e.getMessage()), e);
10471045
return false;

0 commit comments

Comments
 (0)