Fix datasource hostname decode against full config objects

This commit is contained in:
beatz174-bit
2026-04-23 12:58:45 +10:00
parent 000875fc78
commit 8c31f2c646
4 changed files with 70 additions and 31 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ func (d *domainDataSource) Configure(_ context.Context, req datasource.Configure
}
func (d *domainDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
hostname, err := hostnameFromConfig(req.Config)
hostname, err := hostnameFromConfig(ctx, req.Config)
if err != nil {
resp.Diagnostics.AddError("Unable to parse data source configuration", err.Error())
return