From 43157da50b560abda7255d822953379dcfcc6bb0 Mon Sep 17 00:00:00 2001 From: Mikhail Yohman Date: Sun, 26 Mar 2023 19:36:43 -0600 Subject: [PATCH] Add notes_url to schema and Read to provide. Not required for backwards compatability. --- internal/provider/data_source_manufacturers.go | 5 +++++ internal/provider/resource_manufacturer.go | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/internal/provider/data_source_manufacturers.go b/internal/provider/data_source_manufacturers.go index 9c476c5..3fa34e0 100644 --- a/internal/provider/data_source_manufacturers.go +++ b/internal/provider/data_source_manufacturers.go @@ -72,6 +72,11 @@ func dataSourceManufacturers() *schema.Resource { Type: schema.TypeString, Required: true, }, + "notes_url": { + Description: "Notes for manufacturer.", + Type: schema.TypeString, + Optional: true, + }, "platform_count": { Description: "Manufacturer's platform count.", Type: schema.TypeInt, diff --git a/internal/provider/resource_manufacturer.go b/internal/provider/resource_manufacturer.go index 2273cc3..67cfab7 100644 --- a/internal/provider/resource_manufacturer.go +++ b/internal/provider/resource_manufacturer.go @@ -70,6 +70,11 @@ func resourceManufacturer() *schema.Resource { Type: schema.TypeString, Required: true, }, + "notes_url": { + Description: "Notes for manufacturer.", + Type: schema.TypeString, + Optional: true, + }, "platform_count": { Description: "Manufacturer's platform count.", Type: schema.TypeInt, @@ -199,6 +204,7 @@ func resourceManufacturerRead(ctx context.Context, d *schema.ResourceData, meta d.Set("description", item["description"].(string)) d.Set("display", item["display"].(string)) d.Set("id", item["id"].(string)) + d.Set("notes_url", item["notes_url"].(string)) d.Set("slug", item["slug"].(string)) d.Set("url", item["url"].(string)) d.Set("last_updated", item["last_updated"].(string))