use of com.sequenceiq.cloudbreak.orchestrator.salt.domain.FingerprintRequest in project cloudbreak by hortonworks.
the class FingerprintFromSbCollector method collectFingerprintFromMinions.
public FingerprintsResponse collectFingerprintFromMinions(SaltConnector sc, List<Minion> minionsToAccept) throws CloudbreakOrchestratorFailedException {
FingerprintsResponse fingerprintsResponse;
try {
fingerprintsResponse = sc.collectFingerPrints(new FingerprintRequest(minionsToAccept));
} catch (Exception e) {
LOGGER.error("Couldn't collect fingerprints for minions: {}", minionsToAccept, e);
throw new CloudbreakOrchestratorFailedException("Couldn't collect fingerprints for minions", e);
}
validateFingerprintResponse(minionsToAccept, fingerprintsResponse);
return fingerprintsResponse;
}
Aggregations