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 #16506: Improve Hook exec performance #2706

Conversation

fanf
Copy link
Member

@fanf fanf commented Jan 8, 2020

@fanf fanf requested a review from ncharles January 8, 2020 22:42
@@ -300,8 +303,10 @@ object RunHooks {
* Hooks must be executable and not ends with one of the
* non-executable extensions.
*/
def getHooks(basePath: String, ignoreSuffixes: List[String]): Box[Hooks] = {
tryo {
def getHooks(basePath: String, ignoreSuffixes: List[String]): Box[Hooks] = getHooksPure(basePath, ignoreSuffixes).toBox
Copy link
Member

Choose a reason for hiding this comment

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

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 0d3ee52 into Normation:branches/rudder/6.0 Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants