Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion plugins/in_calyptia_fleet/in_calyptia_fleet.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,10 @@ static msgpack_object *msgpack_lookup_map_key(msgpack_object *obj, const char *k

key = &cur->key.via.str;

if (key->size != strlen(keyname)) {
continue;
}

if (strncmp(key->ptr, keyname, key->size) == 0) {
return &cur->val;
}
Expand Down Expand Up @@ -799,7 +803,7 @@ static ssize_t parse_fleet_search_json(struct flb_in_calyptia_fleet_config *ctx,
break;
}

fleet = msgpack_lookup_map_key(map, "ID");
fleet = msgpack_lookup_map_key(map, "id");
if (fleet == NULL) {
flb_plg_error(ctx->ins, "unable to find fleet by name");
break;
Expand Down