Skip to content

Commit

Permalink
dyncfg: allow tree for individual IDs (netdata#17017)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou authored Feb 15, 2024
1 parent 1f97a71 commit 5a0b632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/config/dyncfg-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static void dyncfg_tree_for_host(RRDHOST *host, BUFFER *wb, const char *path, co
if(!rrd_function_available(host, string2str(df->function)))
df->current.status = DYNCFG_STATUS_ORPHAN;

if((id && strcmp(id, df_dfe.name) != 0) || (template && df->template != template))
if((id && strcmp(id, df_dfe.name) != 0) && (template && df->template != template))
continue;

items[used++] = dictionary_acquired_item_dup(dyncfg_globals.nodes, df_dfe.item);
Expand Down

0 comments on commit 5a0b632

Please sign in to comment.