Skip to content

Commit

Permalink
Create a TaskResult object for the client
Browse files Browse the repository at this point in the history
This commit actually creates a TaskResult struct. Without this change users will receive
nil pointer errors when attempting to use this part of the client.
  • Loading branch information
glennsarti committed Aug 30, 2022
1 parent 5896f85 commit c2a1b2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,9 @@
## Enhancements
* Beta removal for `RunListOptions`, in addition to a Field rename (Name -> User) by @mjyocca [#472](https://github.com/hashicorp/go-tfe/pull/472)

## Bug Fixes
* Fixed invalid memory address error when using `TaskResults` field by @glennsarti [#335](https://github.com/hashicorp/go-tfe/pull/335)

# v1.8.0

## Enhancements
Expand Down
1 change: 1 addition & 0 deletions tfe.go
Expand Up @@ -386,6 +386,7 @@ func NewClient(cfg *Config) (*Client, error) {
client.StateVersionOutputs = &stateVersionOutputs{client: client}
client.StateVersions = &stateVersions{client: client}
client.TaskStages = &taskStages{client: client}
client.TaskResults = &taskResults{client: client}
client.Teams = &teams{client: client}
client.TeamAccess = &teamAccesses{client: client}
client.TeamMembers = &teamMembers{client: client}
Expand Down

0 comments on commit c2a1b2c

Please sign in to comment.