@@ -75,13 +75,13 @@ func (m Meta) ZoneSource() string {
75
75
76
76
type Config struct {
77
77
ProviderSchema * schema.ResourceData
78
+ HTTPClient * http.Client
78
79
TerraformVersion string
79
80
ForceZone scw.Zone
80
81
ForceProjectID string
81
82
ForceOrganizationID string
82
83
ForceAccessKey string
83
84
ForceSecretKey string
84
- HTTPClient * http.Client
85
85
}
86
86
87
87
// NewMeta creates the Meta object containing the SDK client.
@@ -247,26 +247,26 @@ func loadProfile(ctx context.Context, d *schema.ResourceData) (*scw.Profile, *Cr
247
247
// GetCredentialsSource infers the source of the credentials based on the priority order of the different profiles
248
248
func GetCredentialsSource (defaultZoneProfile , activeProfile , providerProfile , envProfile * scw.Profile ) * CredentialsSource {
249
249
type SourceProfilePair struct {
250
- Source string
251
250
Profile * scw.Profile
251
+ Source string
252
252
}
253
253
254
254
profilesInOrder := []SourceProfilePair {
255
255
{
256
- CredentialsSourceDefault ,
257
- defaultZoneProfile ,
256
+ Source : CredentialsSourceDefault ,
257
+ Profile : defaultZoneProfile ,
258
258
},
259
259
{
260
- CredentialsSourceActiveProfile ,
261
- activeProfile ,
260
+ Source : CredentialsSourceActiveProfile ,
261
+ Profile : activeProfile ,
262
262
},
263
263
{
264
- CredentialsSourceProviderProfile ,
265
- providerProfile ,
264
+ Source : CredentialsSourceProviderProfile ,
265
+ Profile : providerProfile ,
266
266
},
267
267
{
268
- CredentialsSourceEnvironment ,
269
- envProfile ,
268
+ Source : CredentialsSourceEnvironment ,
269
+ Profile : envProfile ,
270
270
},
271
271
}
272
272
credentialsSource := & CredentialsSource {}
0 commit comments