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 #11191: Add a post-node-acceptation hook #1708

Conversation

fanf
Copy link
Member

@fanf fanf commented Jul 28, 2017

Copy link
Member

@ncharles ncharles left a comment

Choose a reason for hiding this comment

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

Some typo to correct.
Wouldn't it be great to have that in branch 4.1 as well ?

postHooks <- RunHooks.getHooks(HOOKS_D + "/node-post-acceptance", HOOKS_IGNORE_SUFFIXES)
runPostHook = RunHooks.syncRun(postHooks, hookEnv, systemEnv)
timePostHooks = (System.currentTimeMillis - postHooksTime)
_ = logger.debug(s"Node-post-deletion scripts hooks ran in ${timePostHooks} ms")
Copy link
Member

Choose a reason for hiding this comment

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

Node-post-deletion

@@ -0,0 +1,16 @@
= policy-generation-node-finished
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't it be node-post-acceptance ?

@fanf
Copy link
Member Author

fanf commented Jul 28, 2017

I didn't wanted to put it in 4.1 because the feature is half-backed (no pre-node acceptance, not sure about the parameters passed to scripts) and I would prefer to have a real relection done on that subject before considering adding it to 4.1.

@fanf fanf force-pushed the bug_11191/add_a_post_node_acceptation_hook branch from 3fb86dc to 1372d62 Compare July 28, 2017 08:19
@fanf
Copy link
Member Author

fanf commented Jul 28, 2017

PR rebased

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 1372d62 into Normation:branches/rudder/4.2 Jul 28, 2017
@fanf fanf deleted the bug_11191/add_a_post_node_acceptation_hook branch March 15, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants