Skip to content

Commit 1650b19

Browse files
Sh4d1remyleone
andauthored
fix(provider): use api_url (#803)
Signed-off-by: Patrik Cyvoct <[email protected]> Co-authored-by: Rémy Léone <[email protected]>
1 parent 168b56b commit 1650b19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scaleway/provider.go

+3
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ func loadProfile(d *schema.ResourceData) (*scw.Profile, error) {
226226
if zone, exist := d.GetOk("zone"); exist {
227227
providerProfile.DefaultZone = scw.StringPtr(zone.(string))
228228
}
229+
if apiURL, exist := d.GetOk("api_url"); exist {
230+
providerProfile.APIURL = scw.StringPtr(apiURL.(string))
231+
}
229232
}
230233

231234
profile := scw.MergeProfiles(defaultZoneProfile, activeProfile, providerProfile, envProfile)

0 commit comments

Comments
 (0)