Skip to content

Commit

Permalink
Merge pull request #848 from hashicorp/sebasslash/tf-12695_expose-app…
Browse files Browse the repository at this point in the history
…name-header

Expose AppName header
  • Loading branch information
sebasslash committed Feb 7, 2024
2 parents 5580a3b + 7a76e59 commit 7e3754a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Unreleased

## Enhancements
* Updates go-tfe client to export the instance name using `AppName()`

# v1.44.0

## Enhancements
Expand Down
5 changes: 5 additions & 0 deletions tfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,11 @@ func NewClient(cfg *Config) (*Client, error) {
return client, nil
}

// AppName returns the name of the instance.
func (c Client) AppName() string {
return c.appName
}

// IsCloud returns true if the client is configured against a Terraform Cloud
// instance.
//
Expand Down

0 comments on commit 7e3754a

Please sign in to comment.