From 2f946f60308a7e6dae570b226071f41a69a1782b Mon Sep 17 00:00:00 2001 From: nit Date: Tue, 30 Nov 2010 23:47:04 +0530 Subject: [PATCH] bug 7366 : Mark template as removed if create private template from volume fails due to being attached to a non-stopped VM. This allows subsequent creation of a template with the same name. status 7366: resolved fixed --- server/src/com/cloud/vm/UserVmManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/vm/UserVmManagerImpl.java b/server/src/com/cloud/vm/UserVmManagerImpl.java index af6470c4100..38c5b7ae4e6 100755 --- a/server/src/com/cloud/vm/UserVmManagerImpl.java +++ b/server/src/com/cloud/vm/UserVmManagerImpl.java @@ -2547,7 +2547,7 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, VirtualM if (s_logger.isInfoEnabled()) { s_logger.info(msg); } - + _templateDao.remove(command.getId()); // Mark it removed so that templates with the same name can be created subsequently. Bug 7366 throw new CloudRuntimeException(msg); }