@@ -118,12 +118,13 @@ func init() {
118
118
119
119
func providerConfigure (d * schema.ResourceData ) (interface {}, error ) {
120
120
config := Config {
121
- Token : d .Get ("token" ).(string ),
122
- BaseURL : d .Get ("base_url" ).(string ),
123
- CACertFile : d .Get ("cacert_file" ).(string ),
124
- Insecure : d .Get ("insecure" ).(bool ),
125
- ClientCert : d .Get ("client_cert" ).(string ),
126
- ClientKey : d .Get ("client_key" ).(string ),
121
+ Token : d .Get ("token" ).(string ),
122
+ BaseURL : d .Get ("base_url" ).(string ),
123
+ CACertFile : d .Get ("cacert_file" ).(string ),
124
+ Insecure : d .Get ("insecure" ).(bool ),
125
+ ClientCert : d .Get ("client_cert" ).(string ),
126
+ ClientKey : d .Get ("client_key" ).(string ),
127
+ TerraformVersion : "TODO" , // TODO: How to get Terraform version?
127
128
}
128
129
129
130
return config .Client ()
@@ -132,7 +133,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
132
133
func validateApiURLVersion (value interface {}, key string ) (ws []string , es []error ) {
133
134
v := value .(string )
134
135
if strings .HasSuffix (v , "/api/v3" ) || strings .HasSuffix (v , "/api/v3/" ) {
135
- es = append (es , fmt .Errorf ("terraform-gitlab- provider does not support v3 api; please upgrade to /api/v4 in %s" , v ))
136
+ es = append (es , fmt .Errorf ("terraform-provider-gitlab does not support v3 api; please upgrade to /api/v4 in %s" , v ))
136
137
}
137
138
return
138
139
}
0 commit comments