Skip to content

Commit

Permalink
output: on retry_limit do not force case sensitive
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Apr 5, 2017
1 parent cee904d commit 3b7c3e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flb_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ int flb_output_set_property(struct flb_output_instance *out, char *k, char *v)
}
else if (prop_key_check("retry_limit", k, len) == 0) {
if (tmp) {
if (strcmp(tmp, "false") == 0 || strcmp(tmp, "off") == 0) {
if (strcasecmp(tmp, "false") == 0 ||
strcasecmp(tmp, "off") == 0) {
/* No limits for retries */
out->retry_limit = -1;
}
Expand Down

0 comments on commit 3b7c3e5

Please sign in to comment.