out_stackdriver: abort initialization if 'project_id' is not set
@@ -682,6 +682,12 @@ static int cb_stackdriver_init(struct flb_output_instance *ins,
}
}
+ /* Validate project_id */
+ if (!ctx->project_id) {
+ flb_plg_error(ctx->ins, "property 'project_id' is not set");
+ return -1;
+ }
+
return 0;
}
