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 #16518: Missing report on \"Synchronize files\" on simple relay… #1576

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion techniques/system/distributePolicy/1.0/propagatePromises.st
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ bundle agent propagatePromises

pass3.files_propagated.sync_method_rsync::
"any" usebundle => rudder_common_report("DistributePolicy", "result_success", "&TRACKINGKEY&", "Synchronize files", "None", "Shared files synchronized using rsync");
pass3.(files_propagated|(could_not_propagate_files.update_successful)).!sync_method_rsync::
# Cannot directly use success class as it is not defined if there are no files to copy
# | condition for the matching files promise |
pass3.(policy_server.!root_server.!disable_classic_sharedfiles).(!could_not_propagate_files|(could_not_propagate_files.update_successful)).!sync_method_rsync::
"any" usebundle => rudder_common_report("DistributePolicy", "result_success", "&TRACKINGKEY&", "Synchronize files", "None", "Shared files synchronized using classic method");


Expand Down