mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
36b8be43e8
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.
17 lines
308 B
Go
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())
|
|
}
|