Skip to content

Commit 95916b7

Browse files
authored
Merge pull request #792 from hashicorp/TF-9997-go-tfe-gh-issue-791-panic-runtime-error-in-state-versions-upload
Fixes panic during state version upload after some create errors
2 parents 538ec09 + 120022f commit 95916b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# UNRELEASED
2-
<!-- Add CHANGELOG entry to this section for any PR awaiting the next release -->
3-
<!-- Please also include if this is a Bug Fix, Enhancement, or Feature -->
1+
# v.1.36.0
42

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

86
## Bug Fixes
97
* Fix incorrect attribute type for `RegistryModule.VCSRepo.Tags` by @hashimoon [#789](https://github.com/hashicorp/go-tfe/pull/789)
8+
* 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)
109

1110
# v.1.35.0
1211
## Features

state_version.go

+1
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ func (s *stateVersions) Upload(ctx context.Context, workspaceID string, options
287287
if strings.Contains(err.Error(), "param is missing or the value is empty: state") {
288288
return nil, ErrStateVersionUploadNotSupported
289289
}
290+
return nil, err
290291
}
291292

292293
g, _ := errgroup.WithContext(ctx)

0 commit comments

Comments
 (0)