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 #21011: report_if_condition method does not support expressions in its input #1350

Conversation

Fdall
Copy link
Contributor

@Fdall Fdall commented Apr 21, 2022

@Fdall Fdall added the Trigger test Trigger jenkins build label Apr 21, 2022
@@ -50,6 +50,8 @@ bundle agent report_if_condition(report_message, condition)
if => "${condition}";
"extended_message" string => "${report_message} was incorrect",
if => not("${condition}");
classes:
"local_expression" expression => "${condition}";
Copy link
Member

Choose a reason for hiding this comment

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

You also need to change all if below from "condition" to "local_expression"

Copy link
Member

Choose a reason for hiding this comment

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

From what i read in documentation this should be ok ...

@Fdall Fdall added Trigger test Trigger jenkins build and removed Trigger test Trigger jenkins build labels Apr 21, 2022
@Fdall
Copy link
Contributor Author

Fdall commented Apr 21, 2022

PR updated with a new commit

@Normation-Quality-Assistant
Copy link
Contributor

OK, squash merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant force-pushed the bug_21011/report_if_condition_method_does_not_support_expressions_in_its_input branch from 4990049 to 1150260 Compare April 21, 2022 10:07
@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 1150260 into Normation:branches/rudder/7.0 Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Trigger test Trigger jenkins build
Projects
None yet
3 participants