From 03e660442166fe2d4bf563864297fa933bda6190 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Sat, 26 Oct 2024 09:44:47 -0600 Subject: [PATCH] upstream_ha: check if Yaml is available Signed-off-by: Eduardo Silva --- src/flb_upstream_ha.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flb_upstream_ha.c b/src/flb_upstream_ha.c index 951f0a16225..d01e55ad5f3 100644 --- a/src/flb_upstream_ha.c +++ b/src/flb_upstream_ha.c @@ -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); @@ -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");