Skip to content

Commit 3ae6f5b

Browse files
committed
Resolve fix
1 parent 6d1e064 commit 3ae6f5b

File tree

3 files changed

+21
-33
lines changed

3 files changed

+21
-33
lines changed

docs/guides/changelog.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
---
2-
subcategory: "Guides"
3-
page_title: "Changelog"
4-
description: |-
5-
Changelog
6-
---
7-
8-
# Changelog
9-
1+
---
2+
subcategory: "Guides"
3+
page_title: "Changelog"
4+
description: |-
5+
Changelog
6+
---
7+
8+
# Changelog
9+
1010
## 0.3.14 (unreleased)
1111

1212
- 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: |-
306306
## 0.1.0 (July 23, 2021)
307307

308308
- Initial Release
309-
309+

internal/provider/resource_sdwan_policy_object_feature_profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (r *PolicyObjectFeatureProfileResource) Read(ctx context.Context, req resou
138138
tflog.Debug(ctx, fmt.Sprintf("%s: Beginning Read", state.Name.String()))
139139

140140
res, err := r.client.Get(state.getPath() + url.QueryEscape(state.Id.ValueString()))
141-
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") {
141+
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") {
142142
resp.State.RemoveResource(ctx)
143143
return
144144
} else if err != nil {

templates/guides/changelog.md.tmpl

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
---
2-
subcategory: "Guides"
3-
page_title: "Changelog"
4-
description: |-
5-
Changelog
6-
---
7-
8-
# Changelog
9-
1+
---
2+
subcategory: "Guides"
3+
page_title: "Changelog"
4+
description: |-
5+
Changelog
6+
---
7+
8+
# Changelog
9+
1010
## 0.3.14 (unreleased)
1111

1212
- 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: |-
2727

2828
- Add workaround for issue when concurrently deleting security policy objects where the reference count is not updated
2929
- BREAKING CHANGE: Remove default value of `failure_mode` attribute of `sdwan_security_policy` resource
30-
- Add `sdwan_policy_object_feature_profile` resource and data source
31-
- Add `sdwan_policy_object_class_map_profile_parcel` resource and data source
32-
- Add `sdwan_policy_object_color_list_profile_parcel` resource and data source
33-
- Add `sdwan_policy_object_data_ipv6_prefix_list_profile_parcel` resource and data source
34-
- Add `sdwan_policy_object_data_ipv4_prefix_list_profile_parcel` resource and data source
35-
- Add `sdwan_policy_object_tloc_list_profile_parcel` resource and data source
36-
- Add `sdwan_policy_object_expanded_community_list_profile_parcel` resource and data source
37-
- Add `sdwan_policy_object_extended_community_list_profile_parcel` resource and data source
38-
- Add `sdwan_policy_object_mirror_profile_parcel` resource and data source
39-
- Add `sdwan_policy_object_policer_profile_parcel` resource and data source
40-
- Add `sdwan_policy_object_ipv4_prefix_list_profile_parcel` resource and data source
41-
- Add `sdwan_policy_object_ipv6_prefix_list_profile_parcel` resource and data source
4230

4331
## 0.3.12
4432

@@ -318,4 +306,4 @@ description: |-
318306
## 0.1.0 (July 23, 2021)
319307

320308
- Initial Release
321-
309+

0 commit comments

Comments
 (0)