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 #11602: Add a method to compute and format output #643

Conversation

amousset
Copy link
Member

@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_11602/add_a_method_to_compute_and_format_output branch from 4711beb to 02a35eb Compare October 12, 2017 13:30
# ```
# variable_string("prefix", "var", "10");
# variable_string_from_expression("prefix", "sum", "2.0+3.0", "%d");
# variable_string_from_expression("prefix", "product", "3*${prefix.var}", "%d");
Copy link
Member

Choose a reason for hiding this comment

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

You could use more example / documentation from cfengine

# @class_prefix variable_string_from_expression
# @class_parameter variable_name

bundle agent variable_string_from_expression(variable_prefix, variable_name, expression, format)
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer variable_string_from_math_expression

@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_11602/add_a_method_to_compute_and_format_output branch from 02a35eb to b11bc0d Compare October 18, 2017 22:52
@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_11602/add_a_method_to_compute_and_format_output branch from b11bc0d to 6b56f66 Compare October 19, 2017 08:59
@@ -0,0 +1,54 @@
#######################################################
#
# Read a file into a string
Copy link
Member

Choose a reason for hiding this comment

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

comment is invalid

@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_11602/add_a_method_to_compute_and_format_output branch from 6b56f66 to 8c21bda Compare October 19, 2017 09:02
@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_11602/add_a_method_to_compute_and_format_output branch from 8c21bda to ed680b4 Compare October 19, 2017 09:05
@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_11602/add_a_method_to_compute_and_format_output branch from ed680b4 to 420448d Compare October 19, 2017 09:06
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 420448d into Normation:v1.1 Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants