use of com.sequenceiq.freeipa.flow.freeipa.provision.event.orchestrator.OrchestratorConfigFailed in project cloudbreak by hortonworks.
the class OrchestratorConfigHandler method doAccept.
@Override
protected Selectable doAccept(HandlerEvent<OrchestratorConfigRequest> event) {
OrchestratorConfigRequest request = event.getData();
Selectable response;
try {
freeIpaOrchestrationConfigService.configureOrchestrator(request.getResourceId());
response = new OrchestratorConfigSuccess(request.getResourceId());
} catch (Exception e) {
LOGGER.error("FreeIPA orchestration configuration failed", e);
response = new OrchestratorConfigFailed(request.getResourceId(), e);
}
return response;
}
Aggregations