Improve local dev override docs and add read-only example

This commit is contained in:
beatz174-bit committed 2026-04-21 17:11:15 +10:00
1 parent da55eb3c9f
commit d2ad986558
13 files changed
+388 -186

No files matched your search

+2 -2
View File
@@ -88,13 +88,13 @@ func (d *domainDataSource) Read(ctx context.Context, req datasource.ReadRequest,
domainID, _, err := d.clientProvider.client.GetRootDomain(ctx, config.Hostname.ValueString())
if err != nil {
resp.Diagnostics.AddError("Unable to resolve Dynu domain from hostname", err.Error())
resp.Diagnostics.AddError(diagnosticSummary("Unable to resolve Dynu domain from hostname", err), err.Error())
return
}
domain, err := d.clientProvider.client.GetDomainByID(ctx, domainID)
if err != nil {
resp.Diagnostics.AddError("Unable to get Dynu domain", err.Error())
resp.Diagnostics.AddError(diagnosticSummary("Unable to get Dynu domain", err), err.Error())
return
}