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 #4709: When a node is deleted, its generated promises are not removed #2081

Conversation

fanf
Copy link
Member

@fanf fanf commented Nov 13, 2018

@fanf fanf force-pushed the bug_4709/when_a_node_is_deleted_it_s_generated_promises_are_not_removed branch from befd4d4 to 117d22d Compare November 14, 2018 09:06
# - RUDDER_AGENT_TYPE : agent type ("cfengine-nova" or "cfengine-community")
# - RUDDER_POLICIES_DIRECTORY_CURRENT: the full path of the base directory containing policies for that node
# - RUDDER_POLICIES_DIRECTORY_NEW: the full path of the base directory containing next policies for that node (during a generation)
# - RUDDER_POLICIES_DIRECTORY_ARCHIVE: the full path of the base directory containing previous policies for that node
Copy link
Member

Choose a reason for hiding this comment

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

we should remove this one also

# delete all generated policies for that node
NODE_DIR=$(dirname ${RUDDER_POLICIES_DIRECTORY_CURRENT})

if [ -d ${NODE_DIR} ]; then
Copy link
Member

Choose a reason for hiding this comment

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

"${NODE_DIR}"

@fanf fanf force-pushed the bug_4709/when_a_node_is_deleted_it_s_generated_promises_are_not_removed branch from 117d22d to 076a0e1 Compare November 14, 2018 09:35
@fanf
Copy link
Member Author

fanf commented Nov 14, 2018

PR rebased

@fanf
Copy link
Member Author

fanf commented Nov 14, 2018

PR rebased

@fanf fanf force-pushed the bug_4709/when_a_node_is_deleted_it_s_generated_promises_are_not_removed branch from 076a0e1 to d78d15b Compare November 14, 2018 10:07
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit d78d15b into Normation:branches/rudder/4.1 Nov 14, 2018
@fanf fanf deleted the bug_4709/when_a_node_is_deleted_it_s_generated_promises_are_not_removed branch March 15, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants