out_azure_blob: register upstream with instance
@@ -113,7 +113,7 @@ struct flb_azure_blob *flb_azure_blob_conf_create(struct flb_output_instance *in
}
/* Compress (gzip) */
- tmp = flb_output_get_property("compress", ins);
+ tmp = (char *) flb_output_get_property("compress", ins);
ctx->compress_gzip = FLB_FALSE;
if (tmp) {
if (strcasecmp(tmp, "gzip") == 0) {
@@ -149,7 +149,6 @@ struct flb_azure_blob *flb_azure_blob_conf_create(struct flb_output_instance *in
flb_plg_error(ctx->ins, "invalid endpoint '%s'", ctx->endpoint);
return NULL;
}
-
ctx->real_endpoint = flb_sds_create(ctx->endpoint);
}
else {
@@ -180,6 +179,7 @@ struct flb_azure_blob *flb_azure_blob_conf_create(struct flb_output_instance *in
return NULL;
}
}
+ flb_output_upstream_set(ctx->u, ins);
/* Compose base uri */
ctx->base_uri = flb_sds_create_size(256);
