Skip to content

Commit b50eca4

Browse files
committed
change template ID to full template in the log
1 parent 2862b36 commit b50eca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/template/TemplateManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ public boolean deleteTemplate(DeleteTemplateCmd cmd) {
13831383
vmInstanceVOList = _vmInstanceDao.listNonExpungedByTemplate(templateId);
13841384
}
13851385
if(!cmd.isForced() && CollectionUtils.isNotEmpty(vmInstanceVOList)) {
1386-
String message = String.format("Unable to delete template with ID %s, because there are VM instances using it.", templateId);
1386+
String message = String.format("Unable to delete template with ID %s, because there are VM instances using it.", template);
13871387
String instancesListMessage = String.format(" Instances list: [%s].", StringUtils.join(vmInstanceVOList, ","));
13881388

13891389
logger.warn("{}{}", message, instancesListMessage);

0 commit comments

Comments
 (0)