remove else block and fix the error string

This commit is contained in:
Manoj Kumar 2025-11-04 13:32:30 +05:30
parent 2add1babf0
commit ef29e99917
No known key found for this signature in database
GPG Key ID: E952B7234D2C6F88
1 changed files with 1 additions and 3 deletions

View File

@ -174,12 +174,10 @@ public class TemplateJoinDaoImpl extends GenericDaoBaseWithTagInformation<Templa
} else if (template.getDownloadState() == Status.BYPASSED) {
templateStatus = "Bypassed Secondary Storage";
} else if (StringUtils.isNotBlank(template.getErrorString())) {
templateStatus = template.getTemplateState().toString();
templateStatus = template.getErrorString().trim();
}
} else if (template.getDownloadState() == Status.DOWNLOADED) {
templateStatus = "Download Complete";
} else {
templateStatus = "Successfully Installed";
}
return templateStatus;
}