We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd46e61 commit a4cf47aCopy full SHA for a4cf47a
server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java
@@ -180,10 +180,10 @@ private String getTemplateStatus(TemplateJoinVO template) {
180
}
181
} else if (template.getDownloadState() == Status.BYPASSED) {
182
templateStatus = "Bypassed Secondary Storage";
183
- }else if (template.getErrorString()==null){
+ } else if (template.getErrorString() == null) {
184
templateStatus = template.getTemplateState().toString();
185
- }else {
186
- templateStatus = template.getErrorString();
+ } else {
+ templateStatus = template.getErrorString().trim();
187
188
} else if (template.getDownloadState() == Status.DOWNLOADED) {
189
templateStatus = "Download Complete";
0 commit comments