mirror of https://github.com/apache/cloudstack.git
Bug 13027: ListIsos shouldnt display isos that are not dowloaded when asked for only ready templates.
Status 13027: resolved fixed Reviewed-By: Kishan
This commit is contained in:
parent
6e96d6892e
commit
09e0fa0962
|
|
@ -127,11 +127,11 @@ public class ListIsosCmd extends BaseListCmd {
|
|||
public boolean listInReadyState() {
|
||||
Account account = UserContext.current().getCaller();
|
||||
// It is account specific if account is admin type and domainId and accountName are not null
|
||||
boolean isAccountSpecific = (account == null || isAdmin(account.getType())) && (getAccountName() != null) && (getDomainId() != null);
|
||||
//boolean isAccountSpecific = (account == null || isAdmin(account.getType())) && (getAccountName() != null) && (getDomainId() != null);
|
||||
// Show only those that are downloaded.
|
||||
TemplateFilter templateFilter = TemplateFilter.valueOf(getIsoFilter());
|
||||
boolean onlyReady = (templateFilter == TemplateFilter.featured) || (templateFilter == TemplateFilter.selfexecutable) || (templateFilter == TemplateFilter.sharedexecutable)
|
||||
|| (templateFilter == TemplateFilter.executable && isAccountSpecific) || (templateFilter == TemplateFilter.community);
|
||||
|| (templateFilter == TemplateFilter.executable) || (templateFilter == TemplateFilter.community);
|
||||
return onlyReady;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue