mirror of https://github.com/apache/cloudstack.git
Template Adapter:
Return correct adapter by hypervisor type
This commit is contained in:
parent
2daa318009
commit
d23658022b
|
|
@ -166,7 +166,7 @@ public class TemplateManagerImpl implements TemplateManager, Manager, TemplateSe
|
|||
|
||||
private TemplateAdapter getAdapter(HypervisorType type) {
|
||||
TemplateAdapter adapter = null;
|
||||
if (type != HypervisorType.BareMetal) {
|
||||
if (type == HypervisorType.BareMetal) {
|
||||
adapter = _adapters.get(TemplateAdapterType.BareMetal.getName());
|
||||
} else {
|
||||
// see HyervisorTemplateAdapter
|
||||
|
|
|
|||
Loading…
Reference in New Issue