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 #22596: Explain flag mechanisme for "once" method #1386

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions tree/30_generic_methods/command_execution_once.cf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
# it is better to use the `condition_from_command` method to test the state coupled with
# the `command_execution_result` method to run the command if necessary.
#
# In case of reinstallation or factory-reset of the Rudder agent, this method
# will no longer detect if a command has already been executed.
#
# ##### The method will:
#
# **Define** the `command_execution_once_${command}_kept` condition and do nothing if
Expand Down
3 changes: 3 additions & 0 deletions tree/30_generic_methods/condition_once.cf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
# This allows executing actions only once on a given machine.
# The created condition is global to the agent.
#
# In case of reinstallation or factory-reset of the Rudder agent, this method
# will no longer detect if the condition has already been defined.
#
# ##### Example:
#
# If you use:
Expand Down