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
This commit is contained in:
nit 2010-11-30 23:47:04 +05:30
parent 7e4ee81103
commit 2f946f6030
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}