opentofu/terraform/user_agent.go
James Bardin 36b8be43e8 use the new version package
Update all references to the version values to use the new package.
The VersionString function was left in the terraform package
specifically for the aws provider, which is vendored. We can remove that
last call once the provider is updated.
2017-10-19 21:48:08 -04:00

17 lines
308 B
Go

package terraform
import (
"fmt"
"runtime"
"github.com/hashicorp/terraform/version"
)
// The standard Terraform User-Agent format
const UserAgent = "Terraform %s (%s)"
// Generate a UserAgent string
func UserAgentString() string {
return fmt.Sprintf(UserAgent, version.String(), runtime.Version())
}