Skip to content

Commit

Permalink
Fixes #8909: missing rudder_expected_reports.csv.res when starting th…
Browse files Browse the repository at this point in the history
…e agent for the first time after an update - technique changes
  • Loading branch information
amousset committed Aug 29, 2016
1 parent 2c743da commit bdedf6d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion techniques/system/common/1.0/promises.st
Expand Up @@ -88,7 +88,7 @@ bundle common va
};

any::
"end" slist => { "endExecution" };
"end" slist => { "_clean_current_expected_reports_file", "endExecution" };

!android.!windows::
"rudder_var" string => "/var/rudder";
Expand Down Expand Up @@ -656,6 +656,12 @@ bundle agent garbage_collection
comment => "Rotate file if above specified size",
rename => rotate("10"),
file_select => bigger_than("1M");

methods:

# Directly call the cleanup bundle from ncf's logger_rudder
"clean old expected reports files" usebundle => _clean_old_expected_reports_file("&CFENGINE_OUTPUTS_TTL&");
}
#######################################################
Expand Down

0 comments on commit bdedf6d

Please sign in to comment.