mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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
615af2971e
commit
7e5d84f2cc
@ -126,6 +126,8 @@ public class ListIsosCmd extends BaseListCmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean listInReadyState() {
|
public boolean listInReadyState() {
|
||||||
|
return true;
|
||||||
|
/*
|
||||||
Account account = UserContext.current().getCaller();
|
Account account = UserContext.current().getCaller();
|
||||||
// It is account specific if account is admin type and domainId and accountName are not null
|
// 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);
|
||||||
@ -134,6 +136,7 @@ public class ListIsosCmd extends BaseListCmd {
|
|||||||
boolean onlyReady = (templateFilter == TemplateFilter.featured) || (templateFilter == TemplateFilter.selfexecutable) || (templateFilter == TemplateFilter.sharedexecutable)
|
boolean onlyReady = (templateFilter == TemplateFilter.featured) || (templateFilter == TemplateFilter.selfexecutable) || (templateFilter == TemplateFilter.sharedexecutable)
|
||||||
|| (templateFilter == TemplateFilter.executable && isAccountSpecific) || (templateFilter == TemplateFilter.community);
|
|| (templateFilter == TemplateFilter.executable && isAccountSpecific) || (templateFilter == TemplateFilter.community);
|
||||||
return onlyReady;
|
return onlyReady;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////
|
||||||
|
|||||||
@ -107,6 +107,8 @@ public class ListTemplatesCmd extends BaseListCmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean listInReadyState() {
|
public boolean listInReadyState() {
|
||||||
|
return true;
|
||||||
|
/*
|
||||||
Account account = UserContext.current().getCaller();
|
Account account = UserContext.current().getCaller();
|
||||||
// It is account specific if account is admin type and domainId and accountName are not null
|
// 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);
|
||||||
@ -115,6 +117,7 @@ public class ListTemplatesCmd extends BaseListCmd {
|
|||||||
boolean onlyReady = (templateFilter == TemplateFilter.featured) || (templateFilter == TemplateFilter.selfexecutable) || (templateFilter == TemplateFilter.sharedexecutable)
|
boolean onlyReady = (templateFilter == TemplateFilter.featured) || (templateFilter == TemplateFilter.selfexecutable) || (templateFilter == TemplateFilter.sharedexecutable)
|
||||||
|| (templateFilter == TemplateFilter.executable && isAccountSpecific) || (templateFilter == TemplateFilter.community);
|
|| (templateFilter == TemplateFilter.executable && isAccountSpecific) || (templateFilter == TemplateFilter.community);
|
||||||
return onlyReady;
|
return onlyReady;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user