Skip to content

Commit 1b9e4f4

Browse files
authored
Merge pull request #1156 from hashicorp/fix-stack-struct-primary-key-name
Fix primary id keys in stacks related struct types
2 parents f20568e + f3c0cd4 commit 1b9e4f4

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Unreleased
22

3+
## Bug Fixes
4+
* Fixes incorrect primary key usage on `StackDeploymentRun`, `StackDeploymentGroup`, and `StackDeploymentStep`, by @Maed223 [#1156](https://github.com/hashicorp/go-tfe/pull/1156)
5+
36
# v1.86.0
47

58
## Enhancements

stack_deployment_groups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var _ StackDeploymentGroups = &stackDeploymentGroups{}
4242
// StackDeploymentGroup represents a stack deployment group.
4343
type StackDeploymentGroup struct {
4444
// Attributes
45-
ID string `jsonapi:"primary,stacks-deployment-groups"`
45+
ID string `jsonapi:"primary,stack-deployment-groups"`
4646
Name string `jsonapi:"attr,name"`
4747
Status string `jsonapi:"attr,status"`
4848
CreatedAt time.Time `jsonapi:"attr,created-at,iso8601"`

stack_deployment_runs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var _ StackDeploymentRuns = &stackDeploymentRuns{}
2828

2929
// StackDeploymentRun represents a stack deployment run.
3030
type StackDeploymentRun struct {
31-
ID string `jsonapi:"primary,stacks-deployment-runs"`
31+
ID string `jsonapi:"primary,stack-deployment-runs"`
3232
Status string `jsonapi:"attr,status"`
3333
StartedAt time.Time `jsonapi:"attr,started-at,iso8601"`
3434
CompletedAt time.Time `jsonapi:"attr,completed-at,iso8601"`

stack_deployment_steps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type StackDeploymentSteps interface {
2323
// StackDeploymentStep represents a step from a stack deployment
2424
type StackDeploymentStep struct {
2525
// Attributes
26-
ID string `jsonapi:"primary,stacks-deployment-steps"`
26+
ID string `jsonapi:"primary,stack-deployment-steps"`
2727
Status string `jsonapi:"attr,status"`
2828
CreatedAt time.Time `jsonapi:"attr,created-at,iso8601"`
2929
UpdatedAt time.Time `jsonapi:"attr,created-at,iso8601"`

0 commit comments

Comments
 (0)