Skip to content

Commit dfc69f3

Browse files
Address suggestions
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
1 parent a83bb4c commit dfc69f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,8 +1374,8 @@ public boolean deleteTemplate(DeleteTemplateCmd cmd) {
13741374
else {
13751375
vmInstanceVOList = _vmInstanceDao.listNonExpungedByTemplate(templateId);
13761376
}
1377-
if(!cmd.isForced() && CollectionUtils.isNotEmpty(vmInstanceVOList)) {
1378-
String message = String.format("Unable to delete template [%s] because there are VM [%d] instances using it.", template, vmInstanceVOList.size());
1377+
if (!cmd.isForced() && CollectionUtils.isNotEmpty(vmInstanceVOList)) {
1378+
String message = String.format("Unable to delete template [%s] because there are [%d] VM instances using it.", template, vmInstanceVOList.size());
13791379
String instancesListMessage = String.format(" Instances list: [%s].", StringUtils.join(vmInstanceVOList, ","));
13801380

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

0 commit comments

Comments
 (0)