From 8198eb1f6bb3bb1c69344417400ef3c6ab5c6435 Mon Sep 17 00:00:00 2001 From: Chris Marget Date: Sat, 13 Jul 2024 11:27:09 -0400 Subject: [PATCH] close #544 --- apstra/data_source_blueprints.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/apstra/data_source_blueprints.go b/apstra/data_source_blueprints.go index 1be7976a..6a078e60 100644 --- a/apstra/data_source_blueprints.go +++ b/apstra/data_source_blueprints.go @@ -49,7 +49,10 @@ func (o *dataSourceBlueprints) Schema(_ context.Context, _ datasource.SchemaRequ } func (o *dataSourceBlueprints) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var config blueprints + var config struct { + Ids types.Set `tfsdk:"ids"` + RefDesign types.String `tfsdk:"reference_design"` + } resp.Diagnostics.Append(req.Config.Get(ctx, &config)...) if resp.Diagnostics.HasError() { return @@ -93,8 +96,3 @@ func (o *dataSourceBlueprints) Read(ctx context.Context, req datasource.ReadRequ func (o *dataSourceBlueprints) setClient(client *apstra.Client) { o.client = client } - -type blueprints struct { - Ids types.Set `tfsdk:"ids"` - RefDesign types.String `tfsdk:"reference_design"` -}