Skip to content

Commit

Permalink
small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelucaa committed Dec 1, 2022
1 parent 2529a74 commit 335ae65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/resources/feature_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "unleash_feature_v2 Resource - terraform-provider-unleash"
subcategory: ""
description: |-
(Experimental) Provides a resource for managing unleash features with variants and environment strategies.
(Experimental) Provides a resource for managing unleash features with variants and environment strategies all in a single resource.
---

# unleash_feature_v2 (Resource)

(Experimental) Provides a resource for managing unleash features with variants and environment strategies.
(Experimental) Provides a resource for managing unleash features with variants and environment strategies all in a single resource.

## Example Usage

Expand Down
6 changes: 3 additions & 3 deletions internal/provider/resource_feature_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func resourceFeatureV2() *schema.Resource {
return &schema.Resource{
// This description is used by the documentation generator and the language server.
Description: "(Experimental) Provides a resource for managing unleash features with variants and environment strategies.",
Description: "(Experimental) Provides a resource for managing unleash features with variants and environment strategies all in a single resource.",

CreateContext: resourceFeatureV2Create,
ReadContext: resourceFeatureV2Read,
Expand Down Expand Up @@ -476,8 +476,8 @@ func toFeatureEnvironment(tfEnvironment map[string]interface{}) api.Environment
strategy := api.FeatureStrategy{
Name: name,
}
id := strategyMap["id"].(string) // added now
if len(id) > 0 { // added now
id := strategyMap["id"].(string)
if len(id) > 0 {
strategy.ID = id
}
if p, ok := strategyMap["parameters"]; ok {
Expand Down

0 comments on commit 335ae65

Please sign in to comment.