mirror of
https://github.com/restic/restic.git
synced 2026-11-04 22:39:21 +00:00
Rename environment variable to AWS_DEFAULT_REGION
This seems to be the correct name, at least the AWS cli uses it: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
This commit is contained in:
1 parent
4cadc89ad3
commit
fb95426f64
3 files changed
+7
-7
No files matched your search
@@ -486,7 +486,7 @@ func parseConfig(loc location.Location, opts options.Options) (interface{}, erro
|
||||
}
|
||||
|
||||
if cfg.Region == "" {
|
||||
cfg.Region = os.Getenv("AWS_REGION")
|
||||
cfg.Region = os.Getenv("AWS_DEFAULT_REGION")
|
||||
}
|
||||
|
||||
if err := opts.Apply(loc.Scheme, &cfg); err != nil {
|
||||
|
||||
Reference in new issue
Block a user