fix default region reversion
authorJoey Hess <joeyh@joeyh.name>
Wed, 13 Aug 2025 18:19:36 +0000 (14:19 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 13 Aug 2025 18:19:36 +0000 (14:19 -0400)
commitfed5e00a180691784e3a1183a5a426e042c5f06c
tree9df8e2b6e13fdcac6a544d519c43d6e7e2c36402
parent215640096f6a3469c119d50373f3035cf19fe130
fix default region reversion

Commit 215640096f6a3469c119d50373f3035cf19fe130 caused the default
region for S3 to change to us-east-2. This was due to regionInfo having
an undocumented property that the first item in the list is for the
default region.

Avoid relying on regionInfo for defaultRegion.

Sponsored-by: Dartmouth College's DANDI project
Remote/Helper/AWS.hs