Skip to content

Commit 0fcfb97

Browse files
committed
fix(aws): Fix AWS MSK IAM remove cluster_arn dependency
Signed-off-by: Arbin <arbin.cheng@coins.ph>
1 parent e5213f7 commit 0fcfb97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aws/flb_aws_msk_iam.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,13 +606,13 @@ struct flb_aws_msk_iam *flb_aws_msk_iam_register_oauth_cb(struct flb_config *con
606606
ctx->flb_config = config;
607607

608608
/* Extract region from broker address */
609-
if (!opaque || !opaque->kafka_ctx) {
609+
if (!opaque || !opaque->ptr) {
610610
flb_error("[aws_msk_iam] unable to access kafka context for broker-based region extraction");
611611
flb_free(ctx);
612612
return NULL;
613613
}
614614

615-
kafka_ctx = opaque->kafka_ctx;
615+
kafka_ctx = (struct flb_kafka *) opaque->ptr;
616616
if (!kafka_ctx->brokers || flb_sds_len(kafka_ctx->brokers) == 0) {
617617
flb_error("[aws_msk_iam] brokers configuration is required for region extraction");
618618
flb_free(ctx);

0 commit comments

Comments
 (0)