From b9761cd654b6f8454f659094b50c9eed184ccd3b Mon Sep 17 00:00:00 2001 From: Likitha Shetty Date: Fri, 17 Feb 2012 15:38:10 +0530 Subject: [PATCH] Bug 4644 (Pranav) --- .../cloud/storage/secondary/SecondaryStorageManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java b/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java index ee8e5b2e3a6..76e0c2ee533 100755 --- a/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java +++ b/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java @@ -335,12 +335,12 @@ public class SecondaryStorageManagerImpl implements SecondaryStorageVmManager, V public boolean deleteHost(Long hostId) { List snapshots = _snapshotDao.listByHostId(hostId); if( snapshots != null && !snapshots.isEmpty()) { - throw new CloudRuntimeException("Can not delete this secondary storage due to there are still snapshots on it "); + throw new CloudRuntimeException("Can not delete this secondary storage since it contains atleast one or more snapshots "); } if (!_swiftMgr.isSwiftEnabled()) { List list = _templateDao.listPrivateTemplatesByHost(hostId); if (list != null && !list.isEmpty()) { - throw new CloudRuntimeException("Can not delete this secondary storage due to there are still private template on it "); + throw new CloudRuntimeException("Can not delete this secondary storage since it contains private templates "); } } _vmTemplateHostDao.deleteByHost(hostId);