mirror of https://github.com/apache/cloudstack.git
bug 10410:
same template only shows once in a zone, and only ready template shows in UI status 10410: resolved fixed
This commit is contained in:
parent
3f62723bb9
commit
6fe033deae
|
|
@ -126,6 +126,8 @@ public class ListIsosCmd extends BaseListCmd {
|
|||
}
|
||||
|
||||
public boolean listInReadyState() {
|
||||
return true;
|
||||
/*
|
||||
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);
|
||||
|
|
@ -134,6 +136,7 @@ public class ListIsosCmd extends BaseListCmd {
|
|||
boolean onlyReady = (templateFilter == TemplateFilter.featured) || (templateFilter == TemplateFilter.selfexecutable) || (templateFilter == TemplateFilter.sharedexecutable)
|
||||
|| (templateFilter == TemplateFilter.executable && isAccountSpecific) || (templateFilter == TemplateFilter.community);
|
||||
return onlyReady;
|
||||
*/
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -107,6 +107,8 @@ public class ListTemplatesCmd extends BaseListCmd {
|
|||
}
|
||||
|
||||
public boolean listInReadyState() {
|
||||
return true;
|
||||
/*
|
||||
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);
|
||||
|
|
@ -115,6 +117,7 @@ public class ListTemplatesCmd extends BaseListCmd {
|
|||
boolean onlyReady = (templateFilter == TemplateFilter.featured) || (templateFilter == TemplateFilter.selfexecutable) || (templateFilter == TemplateFilter.sharedexecutable)
|
||||
|| (templateFilter == TemplateFilter.executable && isAccountSpecific) || (templateFilter == TemplateFilter.community);
|
||||
return onlyReady;
|
||||
*/
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in New Issue