Skip to content

Commit

Permalink
Resolve fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seconroy committed Jul 18, 2024
1 parent 6d1e064 commit 3ae6f5b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 33 deletions.
20 changes: 10 additions & 10 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -306,4 +306,4 @@ description: |-
## 0.1.0 (July 23, 2021)

- Initial Release


Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
32 changes: 10 additions & 22 deletions templates/guides/changelog.md.tmpl
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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

Expand Down Expand Up @@ -318,4 +306,4 @@ description: |-
## 0.1.0 (July 23, 2021)

- Initial Release

0 comments on commit 3ae6f5b

Please sign in to comment.