Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #140 #199

Merged
merged 4 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions apstra/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,13 @@ const (
errDataSourceConfigureProviderDataDetail = "Expected '%T', got: '%T'. Please report this issue to the provider maintainers."
errResourceConfigureProviderDataSummary = "Unexpected Resource Configure Type."
errResourceConfigureProviderDataDetail = "Expected '%T', got: '%T'. Please report this issue to the provider maintainers."
errDataSourceUnconfiguredSummary = "Data Source not configured"
errDatasourceUnconfiguredDetail = "Unconfigured data source encountered in Read() operation, possibly because it depends on an unknown value from another object. This leads to weird stuff happening, so we'd prefer if you didn't do that. Thanks!"
errProviderInvalidConfig = "Provider configuration invalid"
errResourceUnconfiguredSummary = "Resource not configured"
errResourceUnconfiguredCreateDetail = "Unconfigured resource encountered in Create() operation, possibly because it depends on an unknown value from another object. This leads to weird stuff happening, so we'd prefer if you didn't do that. Thanks!"
errResourceUnconfiguredReadDetail = "Unconfigured resource encountered in Read() operation, possibly because it depends on an unknown value from another object. This leads to weird stuff happening, so we'd prefer if you didn't do that. Thanks!"
errResourceUnconfiguredUpdateDetail = "Unconfigured resource encountered in Update() operation, possibly because it depends on an unknown value from another object. This leads to weird stuff happening, so we'd prefer if you didn't do that. Thanks!"
errResourceUnconfiguredDeleteDetail = "Unconfigured resource encountered in Delete() operation, possibly because it depends on an unknown value from another object. This leads to weird stuff happening, so we'd prefer if you didn't do that. Thanks!"
errReadingAllocation = "error reading '%s' resource allocation '%s' for Blueprint '%s'"
errSettingAllocation = "error setting resource allocation"
errProviderBug = "Provider Bug. Please report this issue to the provider maintainers."
errInvalidConfig = "invalid configuration"
errTemplateTypeInvalidElement = "template '%s' has type '%s' which never permits '%s' to be set"

errDataSourceReadFail = "Data Source Read() failure'"
errResourceReadFail = "Resource Read() failure'"
errInsufficientConfigElements = "Available configuration elements did provide a solution. Please report this issue to the provider maintainers"
errDataSourceReadFail = "Data Source Read() failure'"
errResourceReadFail = "Resource Read() failure'"
errInsufficientConfigElements = "Available configuration elements did provide a solution. Please report this issue to the provider maintainers"
)
5 changes: 0 additions & 5 deletions apstra/data_source_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ func (o *dataSourceAgent) Schema(_ context.Context, _ datasource.SchemaRequest,
}

func (o *dataSourceAgent) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

// Retrieve values from config.
var config systemAgents.ManagedDevice
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_agent_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ func (o *dataSourceAgentProfile) Schema(_ context.Context, _ datasource.SchemaRe
}

func (o *dataSourceAgentProfile) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config agentProfile
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_agent_profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ func (o *dataSourceAgentProfiles) Schema(_ context.Context, _ datasource.SchemaR
}

func (o *dataSourceAgentProfiles) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

config := struct {
Ids types.Set `tfsdk:"ids"`
Platform types.String `tfsdk:"platform"`
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_agents.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ func (o *dataSourceAgents) Schema(_ context.Context, _ datasource.SchemaRequest,
}

func (o *dataSourceAgents) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

type systems struct {
IDs types.Set `tfsdk:"ids"`
Filters types.Object `tfsdk:"filters"`
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_anomalies.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ func (o *dataSourceAnomalies) Schema(_ context.Context, _ datasource.SchemaReque
}

func (o *dataSourceAnomalies) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config blueprint.Anomalies
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_asn_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ func (o *dataSourceAsnPool) Schema(_ context.Context, _ datasource.SchemaRequest
}

func (o *dataSourceAsnPool) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config resources.AsnPool
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_asn_pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ func (o *dataSourceAsnPools) Schema(_ context.Context, _ datasource.SchemaReques
}

func (o *dataSourceAsnPools) Read(ctx context.Context, _ datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

ids, err := o.client.ListAsnPoolIds(ctx)
if err != nil {
resp.Diagnostics.AddError("Error retrieving ASN Pool IDs", err.Error())
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_blueprint_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ func (o *dataSourceBlueprintDeploy) Schema(_ context.Context, _ datasource.Schem
}

func (o *dataSourceBlueprintDeploy) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config blueprint.Deploy
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_blueprints.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ func (o *dataSourceBlueprints) ValidateConfig(ctx context.Context, req datasourc
}

func (o *dataSourceBlueprints) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config blueprints
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_configlet.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ func (o *dataSourceConfiglet) Schema(_ context.Context, _ datasource.SchemaReque
}

func (o *dataSourceConfiglet) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config design.Configlet
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_configlets.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ func (o *dataSourceConfiglets) Schema(_ context.Context, _ datasource.SchemaRequ
}

func (o *dataSourceConfiglets) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config struct {
Ids types.Set `tfsdk:"ids"`
SupportedPlatforms types.Set `tfsdk:"supported_platforms"`
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_datacenter_blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ func (o *dataSourceDatacenterBlueprint) Schema(_ context.Context, _ datasource.S
}

func (o *dataSourceDatacenterBlueprint) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config blueprint.Blueprint
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_datacenter_property_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ func (o *dataSourceDatacenterPropertySet) Schema(_ context.Context, _ datasource
}

func (o *dataSourceDatacenterPropertySet) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config blueprint.DatacenterPropertySet
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_datacenter_property_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ func (o *dataSourceDatacenterPropertySets) Schema(_ context.Context, _ datasourc
}

func (o *dataSourceDatacenterPropertySets) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config struct {
BlueprintId types.String `tfsdk:"blueprint_id"`
Ids types.Set `tfsdk:"ids"`
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_datacenter_routing_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ func (o *dataSourceDatacenterRoutingZone) Schema(_ context.Context, _ datasource
}

func (o *dataSourceDatacenterRoutingZone) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

// Retrieve values from config.
var config blueprint.DatacenterRoutingZone
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_datacenter_routing_zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ func (o *dataSourceDatacenterRoutingZones) Schema(_ context.Context, _ datasourc
}

func (o *dataSourceDatacenterRoutingZones) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

type routingZones struct {
BlueprintId types.String `tfsdk:"blueprint_id"`
IDs types.Set `tfsdk:"ids"`
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_datacenter_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ func (o *dataSourceDatacenterSystemNode) Schema(_ context.Context, _ datasource.
}

func (o *dataSourceDatacenterSystemNode) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config blueprint.NodeTypeSystem
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_datacenter_systems.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ func (o *dataSourceDatacenterSystemNodes) Schema(_ context.Context, _ datasource
}

func (o *dataSourceDatacenterSystemNodes) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config blueprint.NodesTypeSystem
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ func (o *dataSourceVirtualNetworkBindingConstructor) Schema(_ context.Context, _
}

func (o *dataSourceVirtualNetworkBindingConstructor) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config blueprint.VnBindingConstructor
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_interface_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ func (o *dataSourceInterfaceMap) Schema(_ context.Context, _ datasource.SchemaRe
}

func (o *dataSourceInterfaceMap) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config design.InterfaceMap
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_interface_maps.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ func (o *dataSourceInterfaceMaps) Schema(_ context.Context, _ datasource.SchemaR
}

func (o *dataSourceInterfaceMaps) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config interfaceMaps
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_ipv4_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ func (o *dataSourceIpv4Pool) Schema(_ context.Context, _ datasource.SchemaReques
}

func (o *dataSourceIpv4Pool) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config resources.Ipv4Pool
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_ipv4_pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ func (o *dataSourceIpv4Pools) Schema(_ context.Context, _ datasource.SchemaReque
}

func (o *dataSourceIpv4Pools) Read(ctx context.Context, _ datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

ids, err := o.client.ListIp4PoolIds(ctx)
if err != nil {
resp.Diagnostics.AddError("Error retrieving IPv4 Pool IDs", err.Error())
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_ipv6_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ func (o *dataSourceIpv6Pool) Schema(_ context.Context, _ datasource.SchemaReques
}

func (o *dataSourceIpv6Pool) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config resources.Ipv6Pool
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_ipv6_pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ func (o *dataSourceIpv6Pools) Schema(_ context.Context, _ datasource.SchemaReque
}

func (o *dataSourceIpv6Pools) Read(ctx context.Context, _ datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

ids, err := o.client.ListIp6PoolIds(ctx)
if err != nil {
resp.Diagnostics.AddError("Error retrieving IPv6 Pool IDs", err.Error())
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_logical_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ func (o *dataSourceLogicalDevice) Schema(_ context.Context, _ datasource.SchemaR
}

func (o *dataSourceLogicalDevice) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config design.LogicalDevice
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_property_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ func (o *dataSourcePropertySet) Schema(_ context.Context, _ datasource.SchemaReq
}

func (o *dataSourcePropertySet) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config design.PropertySet
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_property_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ func (o *dataSourcePropertySets) Schema(_ context.Context, _ datasource.SchemaRe
}

func (o *dataSourcePropertySets) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config struct {
Ids types.Set `tfsdk:"ids"`
}
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_rack_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ func (o *dataSourceRackType) Schema(_ context.Context, _ datasource.SchemaReques
}

func (o *dataSourceRackType) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config design.RackType
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_rack_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ func (o *dataSourceRackTypes) Schema(_ context.Context, _ datasource.SchemaReque
}

func (o *dataSourceRackTypes) Read(ctx context.Context, _ datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

ids, err := o.client.ListRackTypeIds(ctx)
if err != nil {
resp.Diagnostics.AddError("Error retrieving Rack Type IDs", err.Error())
Expand Down
5 changes: 0 additions & 5 deletions apstra/data_source_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ func (o *dataSourceTag) Schema(_ context.Context, _ datasource.SchemaRequest, re
}

func (o *dataSourceTag) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) {
if o.client == nil {
resp.Diagnostics.AddError(errDataSourceUnconfiguredSummary, errDatasourceUnconfiguredDetail)
return
}

var config design.Tag
resp.Diagnostics.Append(req.Config.Get(ctx, &config)...)
if resp.Diagnostics.HasError() {
Expand Down
Loading