@@ -75,13 +75,13 @@ func (m Meta) ZoneSource() string {
7575
7676type Config struct {
7777 ProviderSchema * schema.ResourceData
78+ HTTPClient * http.Client
7879 TerraformVersion string
7980 ForceZone scw.Zone
8081 ForceProjectID string
8182 ForceOrganizationID string
8283 ForceAccessKey string
8384 ForceSecretKey string
84- HTTPClient * http.Client
8585}
8686
8787// NewMeta creates the Meta object containing the SDK client.
@@ -247,26 +247,26 @@ func loadProfile(ctx context.Context, d *schema.ResourceData) (*scw.Profile, *Cr
247247// GetCredentialsSource infers the source of the credentials based on the priority order of the different profiles
248248func GetCredentialsSource (defaultZoneProfile , activeProfile , providerProfile , envProfile * scw.Profile ) * CredentialsSource {
249249 type SourceProfilePair struct {
250- Source string
251250 Profile * scw.Profile
251+ Source string
252252 }
253253
254254 profilesInOrder := []SourceProfilePair {
255255 {
256- CredentialsSourceDefault ,
257- defaultZoneProfile ,
256+ Source : CredentialsSourceDefault ,
257+ Profile : defaultZoneProfile ,
258258 },
259259 {
260- CredentialsSourceActiveProfile ,
261- activeProfile ,
260+ Source : CredentialsSourceActiveProfile ,
261+ Profile : activeProfile ,
262262 },
263263 {
264- CredentialsSourceProviderProfile ,
265- providerProfile ,
264+ Source : CredentialsSourceProviderProfile ,
265+ Profile : providerProfile ,
266266 },
267267 {
268- CredentialsSourceEnvironment ,
269- envProfile ,
268+ Source : CredentialsSourceEnvironment ,
269+ Profile : envProfile ,
270270 },
271271 }
272272 credentialsSource := & CredentialsSource {}
0 commit comments