Skip to content

Commit 03e6604

Browse files
committed
upstream_ha: check if Yaml is available
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 14353d2 commit 03e6604

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/flb_upstream_ha.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ struct flb_upstream_ha *flb_upstream_ha_from_file(const char *file,
443443
c++;
444444
}
445445
}
446+
#ifdef FLB_HAVE_LIBYAML
446447
else if (cf->format == FLB_CF_YAML) {
447448
mk_list_foreach(head, &cf->upstream_servers) {
448449
section = mk_list_entry(head, struct flb_cf_section, _head_section);
@@ -499,6 +500,7 @@ struct flb_upstream_ha *flb_upstream_ha_from_file(const char *file,
499500
}
500501
}
501502
}
503+
#endif
502504

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

0 commit comments

Comments
 (0)