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 #12722: Create a generic method to create a condition that expires after some time #766

Conversation

peckpeck
Copy link
Member

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.

There is not enough documentation on how to use it - i cannot understand, by reading the code, how it should work.

There isn't any test also - you should definitively add one (you can try to set the class, then run a sleep and an agent, and see if the agent see the clas or not))

@@ -0,0 +1,56 @@
#####################################################################################
# Copyright 2015 Normation SAS
Copy link
Member

Choose a reason for hiding this comment

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

2018

# The created condition (class in CFEngine speaking) is global to the agent.
#
# @parameter condition_prefix The condition prefix
# @parameter duration The timer duration in munutes
Copy link
Member

Choose a reason for hiding this comment

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

typo: in minutes

@fanf
Copy link
Member

fanf commented Mar 26, 2019

ping @peckpeck

@amousset
Copy link
Member

amousset commented Oct 3, 2019

Needs a retarget to 5.0.

@fanf
Copy link
Member

fanf commented Nov 2, 2020

We will close that until we have a better spec on that.

@fanf fanf closed this Nov 2, 2020
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