Skip to content

Commit

Permalink
Merge pull request #792 from hashicorp/TF-9997-go-tfe-gh-issue-791-pa…
Browse files Browse the repository at this point in the history
…nic-runtime-error-in-state-versions-upload

Fixes panic during state version upload after some create errors
  • Loading branch information
brandonc committed Oct 12, 2023
2 parents 538ec09 + 120022f commit 95916b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# UNRELEASED
<!-- Add CHANGELOG entry to this section for any PR awaiting the next release -->
<!-- Please also include if this is a Bug Fix, Enhancement, or Feature -->
# v.1.36.0

## Features
* Added BETA support for private module registry test variables by @aaabdelgany [#787](https://github.com/hashicorp/go-tfe/pull/787)

## Bug Fixes
* Fix incorrect attribute type for `RegistryModule.VCSRepo.Tags` by @hashimoon [#789](https://github.com/hashicorp/go-tfe/pull/789)
* Fix nil dereference panic within `StateVersions` `upload` after not handling certain state version create errors by @brandonc [#792](https://github.com/hashicorp/go-tfe/pull/792)

# v.1.35.0
## Features
Expand Down
1 change: 1 addition & 0 deletions state_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ func (s *stateVersions) Upload(ctx context.Context, workspaceID string, options
if strings.Contains(err.Error(), "param is missing or the value is empty: state") {
return nil, ErrStateVersionUploadNotSupported
}
return nil, err
}

g, _ := errgroup.WithContext(ctx)
Expand Down

0 comments on commit 95916b7

Please sign in to comment.