You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("the provided region is not available for this API, available regions are: %s", availableRegions)
525
527
}
526
528
// Global API.
527
-
// If a region is provided by the user via WithRegion() or via environment variable return an error.
529
+
// If a region is provided by the user via WithRegion() return an error.
528
530
// The region is provided as a function argument instead of being set in the client configuration.
529
-
ifcfg.Region!="" {
531
+
ifcfg.Region!=""&&!isRegionSetByEnv{
530
532
returnfmt.Errorf("this API does not support setting a region in the the client configuration, please check if the region can be specified as a function parameter")
531
533
}
532
534
// If the url is a template, generated using deprecated config.json, the region variable is replaced
0 commit comments