mirror of https://github.com/apache/cloudstack.git
Allow endpoint selection logic for system templates in region and zone scopes
This commit is contained in:
parent
6a324da27a
commit
387f958df1
|
|
@ -400,7 +400,9 @@ public class DefaultEndPointSelector implements EndPointSelector {
|
|||
}
|
||||
if (object instanceof TemplateInfo) {
|
||||
TemplateInfo tmplInfo = (TemplateInfo)object;
|
||||
if (store.getScope().getScopeType() == ScopeType.ZONE && store.getScope().getScopeId() == null && tmplInfo.getTemplateType() == TemplateType.SYSTEM) {
|
||||
if (tmplInfo.getTemplateType() == TemplateType.SYSTEM &&
|
||||
(store.getScope().getScopeType() == ScopeType.REGION ||
|
||||
(store.getScope().getScopeType() == ScopeType.ZONE && store.getScope().getScopeId() == null))) {
|
||||
return LocalHostEndpoint.getEndpoint(); // for bootstrap system vm template downloading to region image store
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue