Skip to content

Commit

Permalink
out_stackdriver: fix bug in k8s_pod process_local_resource_id (#8490)
Browse files Browse the repository at this point in the history
Signed-off-by: ryanohnemus <[email protected]>
  • Loading branch information
ryanohnemus authored Feb 16, 2024
1 parent 9c3978c commit bf76745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/out_stackdriver/stackdriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,7 @@ static flb_sds_t stackdriver_format(struct flb_stackdriver *ctx,
*/

ret = process_local_resource_id(ctx, tag, tag_len, K8S_POD);
if (ret != 0) {
if (ret == -1) {
flb_plg_error(ctx->ins, "fail to process local_resource_id from "
"log entry for k8s_pod");
msgpack_sbuffer_destroy(&mp_sbuf);
Expand Down

0 comments on commit bf76745

Please sign in to comment.