Skip to content

Commit

Permalink
Merge pull request #7 from linode/fix_linode_config
Browse files Browse the repository at this point in the history
fix config keys in internal linode client to match the terraform provider keys
  • Loading branch information
srust authored Mar 14, 2023
2 parents 6adb5ab + 7078188 commit 67bb0bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/clients/linode.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ const (
)

const (
keyToken = "token"
keyURL = "url"
keyToken = "token"
keyURL = "api_url"
keyVersion = "api_version"
)

// TerraformSetupBuilder builds Terraform a terraform.SetupFn function which
Expand Down Expand Up @@ -75,6 +76,9 @@ func TerraformSetupBuilder(version, providerSource, providerVersion string) terr
if v, ok := creds[keyURL]; ok {
ps.Configuration[keyURL] = v
}
if v, ok := creds[keyVersion]; ok {
ps.Configuration[keyVersion] = v
}
return ps, nil
}
}

0 comments on commit 67bb0bc

Please sign in to comment.