-
Notifications
You must be signed in to change notification settings - Fork 38
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 #13632: Allow to report on same reporting parameters #840
Fixes #13632: Allow to report on same reporting parameters #840
Conversation
6c270ea
to
8560cd9
Compare
Commit modified |
8560cd9
to
975b36c
Compare
Commit modified |
@@ -203,7 +203,7 @@ bundle agent _log_rudder_v2(expected_reports_source, message, class_prefix, args | |||
|
|||
methods: | |||
report_data_found:: | |||
"any" usebundle => _rudder_common_reports_generic("${report_data[1]}", "${class_prefix}", "${report_data[3]}", "${promisers}", "${args_line1}", "${message_line1}"), | |||
"any" usebundle => _rudder_common_reports_generic("${report_data[1]}", "${class_prefix}", "${report_data[3]}", "${promisers}", "${args_line1}", "${message_line1}",""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe there should be a value here, i dunno ... but since logger_v2 is almost never called ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome ! This is some hell of cfengine-fu
Can you also update the others GMs ?
ifvarclass => "${class_prefix}_noop.!${class_prefix}_kept.!${class_prefix}_repaired.!${class_prefix}_error"; | ||
|
||
"success" | ||
usebundle => _rudder_common_report("${technique_name}", "result_success", "${identifier}", "${component_name}", "${component_key}", "${message_prefix} was correct"), | ||
"success-${join}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to change this promiser
@@ -277,7 +277,8 @@ bundle agent _rudder_common_report(technique_name, status, identifier, component | |||
|
|||
reports: | |||
!changes_only|send_reports:: | |||
"@@${technique_name}@@${status}@@${identifier}@@${component_name}@@${component_key}@@${g.execRun}##${g.uuid}@#${message}"; | |||
"@@${technique_name}@@${status}@@${identifier}@@${component_name}@@${component_key}@@${g.execRun}##${g.uuid}@#${message}" | |||
comment => "${join}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you improve the text by saying: "Method call with parameters ${join}", or something equivalent ?
975b36c
to
6586811
Compare
Commit modified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great ! however, i think thal all file_ should be anonymised, and also you should do the "joined" for each of them
@@ -36,5 +36,5 @@ bundle agent file_ensure_lines_present(file, lines) | |||
"enforce lines content" usebundle => file_enforce_content("${file}", "${lines}", "false"); | |||
"new result classes" usebundle => _classes_copy("${class_prefix}_enforce_lines_content", "${class_prefix}"); | |||
|
|||
"report" usebundle => _log("Insert content ${lines} into ${file}", "", "${class_prefix}", @{args}); | |||
"report" usebundle => _log("Insert content into ${file}", "", "${class_prefix}", @{args}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should also "joined" string => join(",",args); here
Commit modified |
6586811
to
27c57cd
Compare
This PR is not mergeable to upper versions. |
https://www.rudder-project.org/redmine/issues/13632