mirror of https://github.com/apache/cloudstack.git
Missing two files in last check-in
This commit is contained in:
parent
e2f2f7bf3d
commit
01701b1d9c
|
|
@ -184,7 +184,7 @@ public class BareMetalVmManagerImpl extends UserVmManagerImpl implements BareMet
|
|||
* prepare() will check if current account has right for creating
|
||||
* template
|
||||
*/
|
||||
TemplateAdapter adapter = _adapters.get(TemplateAdapterType.BareMetal.getName());
|
||||
TemplateAdapter adapter = Adapters.getAdapterByName(_adapters, TemplateAdapterType.BareMetal.getName());
|
||||
Long userId = UserContext.current().getCallerUserId();
|
||||
userId = (userId == null ? User.UID_SYSTEM : userId);
|
||||
AccountVO account = _accountDao.findById(vm.getAccountId());
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ public class PxeServerManagerImpl implements PxeServerManager, ResourceStateAdap
|
|||
|
||||
protected PxeServerService getServiceByType(String type) {
|
||||
PxeServerService _service;
|
||||
_service = _services.get(type);
|
||||
_service = Adapters.getAdapterByName(_services, type);
|
||||
if (_service == null) {
|
||||
throw new CloudRuntimeException("Cannot find PXE service for " + type);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue