Skip to content

Commit 6cfac82

Browse files
committed
addressed comments
1 parent e2a8b40 commit 6cfac82

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FEATURES:
88
* `d/tfe_organization_membership`: Add `organization_membership_id` attribute, by @laurenolivia [997](https://github.com/hashicorp/terraform-provider-tfe/pull/997)
99
* `d/tfe_variable_set`: Add `project_ids` attribute, by @Netra2104 [994](https://github.com/hashicorp/terraform-provider-tfe/pull/994)
1010
* **New Data Source**: `d/tfe_teams` is a new data source to return names and IDs of Teams in an Organization, by @isaacmcollins [992](https://github.com/hashicorp/terraform-provider-tfe/pull/992)
11-
* **New Resource**: `r/tfe_workspace_policy_set_exclusion` is a new resource to attach/detach an existing excluded `workspace` to an existing `policy set`, by @Netra2104 [1033](https://github.com/hashicorp/terraform-provider-tfe/pull/1033)
11+
* **New Resource**: `r/tfe_workspace_policy_set_exclusion` is a new resource to attach/detach an existing `workspace` to an existing `policy set` as an exclusion, by @Netra2104 [1033](https://github.com/hashicorp/terraform-provider-tfe/pull/1033)
1212

1313
## v0.48.0 (August 7, 2023)
1414

internal/provider/resource_tfe_workspace_policy_set_exclusion.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ func resourceTFEWorkspacePolicySetExclusionCreate(d *schema.ResourceData, meta i
4343
config := meta.(ConfiguredClient)
4444

4545
policySetID := d.Get("policy_set_id").(string)
46-
workspaceExclusionsID := d.Get("workspace_id").(string)
46+
workspaceExclusionID := d.Get("workspace_id").(string)
4747

4848
policySetAddWorkspaceExclusionsOptions := tfe.PolicySetAddWorkspaceExclusionsOptions{}
49-
policySetAddWorkspaceExclusionsOptions.WorkspaceExclusions = append(policySetAddWorkspaceExclusionsOptions.WorkspaceExclusions, &tfe.Workspace{ID: workspaceExclusionsID})
49+
policySetAddWorkspaceExclusionsOptions.WorkspaceExclusions = append(policySetAddWorkspaceExclusionsOptions.WorkspaceExclusions, &tfe.Workspace{ID: workspaceExclusionID})
5050

5151
err := config.Client.PolicySets.AddWorkspaceExclusions(ctx, policySetID, policySetAddWorkspaceExclusionsOptions)
5252
if err != nil {
5353
return fmt.Errorf(
54-
"error attaching policy set id %s to excluded workspace %s: %w", policySetID, workspaceExclusionsID, err)
54+
"error attaching policy set id %s to excluded workspace %s: %w", policySetID, workspaceExclusionID, err)
5555
}
5656

57-
d.SetId(fmt.Sprintf("%s_%s", workspaceExclusionsID, policySetID))
57+
d.SetId(fmt.Sprintf("%s_%s", workspaceExclusionID, policySetID))
5858

5959
return resourceTFEWorkspacePolicySetExclusionRead(d, meta)
6060
}

0 commit comments

Comments
 (0)