Skip to content

Commit

Permalink
Fixes #22596: Explain flag mechanisme for \"once\" method
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaadF committed Apr 5, 2023
1 parent cfb164e commit b0a712e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit b0a712e

Please sign in to comment.