Fix datasource hostname decode against full config objects

This commit is contained in:
beatz174-bit committed 2026-04-23 12:58:45 +10:00
1 parent 000875fc78
commit 8c31f2c646
4 files changed
+70 -31

No files matched your search

+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