@cryptotaxi247 / netdata-1 / commits / 5a0b632d2

dyncfg: allow tree for individual IDs (#17017)

Costa Tsaousis committed Feb 15, 2024 at 19:54 UTC 5a0b632d2599448a7aa97ae8457c042581a16b47
1 file changed +1 -1
src/daemon/config/dyncfg-tree.c
+1 -1
@@ -85,7 +85,7 @@ static void dyncfg_tree_for_host(RRDHOST *host, BUFFER *wb, const char *path, co
85 if(!rrd_function_available(host, string2str(df->function)))
86 df->current.status = DYNCFG_STATUS_ORPHAN;
87
88 - if((id && strcmp(id, df_dfe.name) != 0) || (template && df->template != template))
88 + if((id && strcmp(id, df_dfe.name) != 0) && (template && df->template != template))
89 continue;
90
91 items[used++] = dictionary_acquired_item_dup(dyncfg_globals.nodes, df_dfe.item);