Skip to content

Commit

Permalink
upstream_ha: check if Yaml is available
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Oct 26, 2024
1 parent 14353d2 commit 03e6604
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flb_upstream_ha.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ struct flb_upstream_ha *flb_upstream_ha_from_file(const char *file,
c++;
}
}
#ifdef FLB_HAVE_LIBYAML
else if (cf->format == FLB_CF_YAML) {
mk_list_foreach(head, &cf->upstream_servers) {
section = mk_list_entry(head, struct flb_cf_section, _head_section);
Expand Down Expand Up @@ -499,6 +500,7 @@ struct flb_upstream_ha *flb_upstream_ha_from_file(const char *file,
}
}
}
#endif

if (c == 0) {
flb_error("[upstream_ha] no nodes defined");
Expand Down

0 comments on commit 03e6604

Please sign in to comment.