Skip to content

Commit

Permalink
Fix typo in fetchAgentPoolID function name
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Rivera <sebastian.rivera@hashicorp.com>
  • Loading branch information
JarrettSpiker and sebasslash committed Aug 2, 2022
1 parent e03a0ca commit 9790800
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tfe/agent_pool_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
tfe "github.com/hashicorp/go-tfe"
)

func fetchtAgentPoolID(orgName string, poolName string, client *tfe.Client) (string, error) {
func fetchAgentPoolID(orgName string, poolName string, client *tfe.Client) (string, error) {
// to reduce the number of pages returned, search based on the name. TFE instances which
// do not support agent pool search will just ignore the query parameter
options := tfe.AgentPoolListOptions{
Expand Down
2 changes: 1 addition & 1 deletion tfe/data_source_agent_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func dataSourceTFEAgentPoolRead(d *schema.ResourceData, meta interface{}) error
name := d.Get("name").(string)
organization := d.Get("organization").(string)

id, err := fetchtAgentPoolID(organization, name, tfeClient)
id, err := fetchAgentPoolID(organization, name, tfeClient)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion tfe/resource_tfe_agent_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func resourceTFEAgentPoolImporter(d *schema.ResourceData, meta interface{}) ([]*
} else if len(s) == 2 {
org := s[0]
poolName := s[1]
poolID, err := fetchtAgentPoolID(org, poolName, tfeClient)
poolID, err := fetchAgentPoolID(org, poolName, tfeClient)
if err != nil {
return nil, fmt.Errorf(
"error retrieving agent pool with name %s from organization %s %w", poolName, org, err)
Expand Down

0 comments on commit 9790800

Please sign in to comment.