mirror of https://github.com/apache/cloudstack.git
server: remove extra chars when template status is error string (#11329)
Fixes #11324 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
fd46e61032
commit
a4cf47a9b8
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue