Skip to content

Commit 23def5b

Browse files
committed
task: reject ID fallback when label is provided but doesn't match
Signed-off-by: Eduardo Silva <[email protected]>
1 parent ae8b0c4 commit 23def5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flb_task.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ static struct flb_output_instance *task_find_output_reference(struct flb_config
123123
return o_ins;
124124
}
125125
}
126+
127+
/* If label was present but didn't match, reject ID-only fallback */
128+
return NULL;
126129
}
127130

128131
mk_list_foreach(head, &config->outputs) {

0 commit comments

Comments
 (0)