Skip to content

Commit 58150ce

Browse files
committed
Added - fix security token error message
1 parent 3826aa6 commit 58150ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ func getConfigProviders(d *schema.ResourceData, auth string) ([]oci_common.Confi
401401

402402
region, ok := d.GetOk(globalvar.RegionAttrName)
403403
if !ok {
404-
return nil, fmt.Errorf("can not get %s from Terraform configuration (InstancePrincipal)", globalvar.RegionAttrName)
404+
return nil, fmt.Errorf("can not get %s from Terraform configuration (SecurityToken)", globalvar.RegionAttrName)
405405
}
406406
// if region is part of the provider block make sure it is part of the final configuration too, and overwrites the region in the profile. +
407407
regionProvider := oci_common.NewRawConfigurationProvider("", "", region.(string), "", "", nil)

0 commit comments

Comments
 (0)