Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #10927: Create system variables for apache authentication #1673

Conversation

ncharles
Copy link
Member

val nodesWithCertificate = nodesAgentWithCertificate.flatMap {case (agent, node) =>
agent.securityToken match {
// A certificat, we return it
case cert:Certificate => Some(node -> cert)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should return here (cert, cert.cert) because parsing cert is expensive, so better doing only one time

@ncharles
Copy link
Member Author

Commit modified

@ncharles ncharles force-pushed the arch_10927/create_system_variables_for_apache_authentication branch from 7458a47 to a938665 Compare June 21, 2017 13:39
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit a938665 into Normation:prototype/windows-dsc Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants