Skip to content

Commit

Permalink
in_calyptia_fleet: fleet id search by name must use exact name. (#9561)
Browse files Browse the repository at this point in the history
Given that this search is to get a fleet id, it should only return either 0 or 1 match. For this, this must be case-sensitive and do not return partial matches.

Signed-off-by: lecaros <[email protected]>
  • Loading branch information
lecaros authored Nov 6, 2024
1 parent b0b2573 commit 48ccda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/in_calyptia_fleet/in_calyptia_fleet.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ static int get_calyptia_fleet_id_by_name(struct flb_in_calyptia_fleet_config *ct
return -1;
}

flb_sds_printf(&url, "/v1/search?project_id=%s&resource=fleet&term=%s",
flb_sds_printf(&url, "/v1/search?project_id=%s&resource=fleet&term=%s&exact=true",
project_id, ctx->fleet_name);

client = fleet_http_do(ctx, url);
Expand Down

0 comments on commit 48ccda0

Please sign in to comment.