This is an automated email from the ASF dual-hosted git repository. weizhou pushed a commit to branch 4.19 in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.19 by this push: new a4cf47a9b80 server: remove extra chars when template status is error string (#11329) a4cf47a9b80 is described below commit a4cf47a9b80e4ea96d0b702730b6e3363709d321 Author: Abhishek Kumar <abhishek.mr...@gmail.com> AuthorDate: Wed Sep 3 16:30:26 2025 +0530 server: remove extra chars when template status is error string (#11329) Fixes #11324 Signed-off-by: Abhishek Kumar <abhishek.mr...@gmail.com> --- .../src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java b/server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java index 26a18818dbf..d23e2f6260f 100644 --- a/server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java +++ b/server/src/main/java/com/cloud/api/query/dao/TemplateJoinDaoImpl.java @@ -180,10 +180,10 @@ public class TemplateJoinDaoImpl extends GenericDaoBaseWithTagInformation<Templa } } else if (template.getDownloadState() == Status.BYPASSED) { templateStatus = "Bypassed Secondary Storage"; - }else if (template.getErrorString()==null){ + } else if (template.getErrorString() == null) { templateStatus = template.getTemplateState().toString(); - }else { - templateStatus = template.getErrorString(); + } else { + templateStatus = template.getErrorString().trim(); } } else if (template.getDownloadState() == Status.DOWNLOADED) { templateStatus = "Download Complete";