Skip to content

Commit a4cf47a

Browse files
authored
server: remove extra chars when template status is error string (#11329)
Fixes #11324 Signed-off-by: Abhishek Kumar <[email protected]>
1 parent fd46e61 commit a4cf47a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ private String getTemplateStatus(TemplateJoinVO template) {
180180
}
181181
} else if (template.getDownloadState() == Status.BYPASSED) {
182182
templateStatus = "Bypassed Secondary Storage";
183-
}else if (template.getErrorString()==null){
183+
} else if (template.getErrorString() == null) {
184184
templateStatus = template.getTemplateState().toString();
185-
}else {
186-
templateStatus = template.getErrorString();
185+
} else {
186+
templateStatus = template.getErrorString().trim();
187187
}
188188
} else if (template.getDownloadState() == Status.DOWNLOADED) {
189189
templateStatus = "Download Complete";

0 commit comments

Comments
 (0)