mirror of https://github.com/apache/cloudstack.git
remove else block and fix the error string
This commit is contained in:
parent
2add1babf0
commit
ef29e99917
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue