Skip to content

Commit

Permalink
out_stackdriver: fix project_id length for testing (#2611)
Browse files Browse the repository at this point in the history
Signed-off-by: Yen-Cheng Chou <[email protected]>
  • Loading branch information
StevenYCChou authored Sep 29, 2020
1 parent 27b25a1 commit 3ba1b77
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 3ba1b77

Please sign in to comment.