Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/fluent-bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,10 +1430,17 @@ static int flb_main_run(int argc, char **argv)
#endif

if (config->dry_run == FLB_TRUE) {
fprintf(stderr, "configuration test is successful\n");
ret = flb_reload_property_check_all(config);

/* At this point config test is done, so clean up after ourselves */
flb_init_env();
flb_cf_destroy(cf_opts);
flb_destroy(ctx);

if (ret != 0) {
exit(EXIT_FAILURE);
}
fprintf(stderr, "configuration test is successful\n");
exit(EXIT_SUCCESS);
}

Expand Down
Loading