Skip to content

Commit 1d4638b

Browse files
Update stack UpdateConfiguration endpoint to fetch-latest-from-vcs (#1157)
* updated api endpoint for fetching stack config * changelog preliminary entry
1 parent 1b9e4f4 commit 1d4638b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
## Bug Fixes
44
* Fixes incorrect primary key usage on `StackDeploymentRun`, `StackDeploymentGroup`, and `StackDeploymentStep`, by @Maed223 [#1156](https://github.com/hashicorp/go-tfe/pull/1156)
55

6+
## Enhancements
7+
8+
* Updates endpoint for updating stack configuration from `actions/update-configuration` to `fetch-latest-from-vcs` by @hwatkins05-hashicorp [#1157](https://github.com/hashicorp/go-tfe/pull/1157)
9+
610
# v1.86.0
711

812
## Enhancements

stack.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ type WaitForStatusResult struct {
212212
const minimumPollingIntervalMs = 3000
213213
const maximumPollingIntervalMs = 5000
214214

215-
// UpdateConfiguration updates the configuration of a stack, triggering stack operations
215+
// UpdateConfiguration fetches the latest configuration of a stack from VCS, triggering stack operations
216216
func (s *stacks) UpdateConfiguration(ctx context.Context, stackID string) (*Stack, error) {
217-
req, err := s.client.NewRequest("POST", fmt.Sprintf("stacks/%s/actions/update-configuration", url.PathEscape(stackID)), nil)
217+
req, err := s.client.NewRequest("POST", fmt.Sprintf("stacks/%s/fetch-latest-from-vcs", url.PathEscape(stackID)), nil)
218218
if err != nil {
219219
return nil, err
220220
}

0 commit comments

Comments
 (0)