diff --git a/docs/guides/changelog.md b/docs/guides/changelog.md index 96baf60b..32e16038 100644 --- a/docs/guides/changelog.md +++ b/docs/guides/changelog.md @@ -1,12 +1,12 @@ ---- -subcategory: "Guides" -page_title: "Changelog" -description: |- - Changelog ---- - -# Changelog - +--- +subcategory: "Guides" +page_title: "Changelog" +description: |- + Changelog +--- + +# Changelog + ## 0.3.14 (unreleased) - Fix issue when reading deleted `sdwan_cli_config_profile_parcel` resource, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/291) @@ -306,4 +306,4 @@ description: |- ## 0.1.0 (July 23, 2021) - Initial Release - + diff --git a/internal/provider/resource_sdwan_policy_object_feature_profile.go b/internal/provider/resource_sdwan_policy_object_feature_profile.go index 83faca63..ee1650c0 100644 --- a/internal/provider/resource_sdwan_policy_object_feature_profile.go +++ b/internal/provider/resource_sdwan_policy_object_feature_profile.go @@ -138,7 +138,7 @@ func (r *PolicyObjectFeatureProfileResource) Read(ctx context.Context, req resou tflog.Debug(ctx, fmt.Sprintf("%s: Beginning Read", state.Name.String())) res, err := r.client.Get(state.getPath() + url.QueryEscape(state.Id.ValueString())) - if strings.Contains(res.Get("error.message").String(), "Failed to find specified resource") || strings.Contains(res.Get("error.message").String(), "Invalid template type") || strings.Contains(res.Get("error.message").String(), "Template definition not found") || strings.Contains(res.Get("error.message").String(), "Invalid Profile Id") { + if strings.Contains(res.Get("error.message").String(), "Failed to find specified resource") || strings.Contains(res.Get("error.message").String(), "Invalid template type") || strings.Contains(res.Get("error.message").String(), "Template definition not found") || strings.Contains(res.Get("error.message").String(), "Invalid Profile Id") || strings.Contains(res.Get("error.message").String(), "Invalid feature Id") { resp.State.RemoveResource(ctx) return } else if err != nil { diff --git a/templates/guides/changelog.md.tmpl b/templates/guides/changelog.md.tmpl index df7bd1c5..32e16038 100644 --- a/templates/guides/changelog.md.tmpl +++ b/templates/guides/changelog.md.tmpl @@ -1,12 +1,12 @@ ---- -subcategory: "Guides" -page_title: "Changelog" -description: |- - Changelog ---- - -# Changelog - +--- +subcategory: "Guides" +page_title: "Changelog" +description: |- + Changelog +--- + +# Changelog + ## 0.3.14 (unreleased) - Fix issue when reading deleted `sdwan_cli_config_profile_parcel` resource, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/291) @@ -27,18 +27,6 @@ description: |- - Add workaround for issue when concurrently deleting security policy objects where the reference count is not updated - BREAKING CHANGE: Remove default value of `failure_mode` attribute of `sdwan_security_policy` resource -- Add `sdwan_policy_object_feature_profile` resource and data source -- Add `sdwan_policy_object_class_map_profile_parcel` resource and data source -- Add `sdwan_policy_object_color_list_profile_parcel` resource and data source -- Add `sdwan_policy_object_data_ipv6_prefix_list_profile_parcel` resource and data source -- Add `sdwan_policy_object_data_ipv4_prefix_list_profile_parcel` resource and data source -- Add `sdwan_policy_object_tloc_list_profile_parcel` resource and data source -- Add `sdwan_policy_object_expanded_community_list_profile_parcel` resource and data source -- Add `sdwan_policy_object_extended_community_list_profile_parcel` resource and data source -- Add `sdwan_policy_object_mirror_profile_parcel` resource and data source -- Add `sdwan_policy_object_policer_profile_parcel` resource and data source -- Add `sdwan_policy_object_ipv4_prefix_list_profile_parcel` resource and data source -- Add `sdwan_policy_object_ipv6_prefix_list_profile_parcel` resource and data source ## 0.3.12 @@ -318,4 +306,4 @@ description: |- ## 0.1.0 (July 23, 2021) - Initial Release - +