Skip to content

Commit

Permalink
out_stackdriver: fix project_id length for testing (fluent#2611)
Browse files Browse the repository at this point in the history
Signed-off-by: Yen-Cheng Chou <ycchou@google.com>
  • Loading branch information
StevenYCChou authored and xmcqueen committed Oct 6, 2020
1 parent 66df2fb commit c4115b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/out_stackdriver/gce_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static int fetch_metadata(struct flb_stackdriver *ctx,
/* If runtime test mode is enabled, add test data */
if (ctx->ins->test_mode == FLB_TRUE) {
if (strcmp(uri, FLB_STD_METADATA_PROJECT_ID_URI) == 0) {
flb_sds_cat(payload, "fluent-bit-test", 9);
flb_sds_cat(payload, "fluent-bit-test", 15);
return 0;
}
else if (strcmp(uri, FLB_STD_METADATA_ZONE_URI) == 0) {
Expand Down

0 comments on commit c4115b2

Please sign in to comment.