From feaad13ac33b35f56dd65f9d4f7ca3d3fb18f487 Mon Sep 17 00:00:00 2001 From: Florent Beauchamp Date: Fri, 30 Sep 2022 16:50:48 +0200 Subject: [PATCH] fix(xo-web): save region on S3 remote creation Introduced by f755365 --- CHANGELOG.unreleased.md | 1 + packages/xo-web/src/xo-app/settings/remotes/remote.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 7ad533882..b9b119474 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -25,5 +25,6 @@ - xo-remote-parser patch - xo-server-transport-nagios patch +- xo-web patch diff --git a/packages/xo-web/src/xo-app/settings/remotes/remote.js b/packages/xo-web/src/xo-app/settings/remotes/remote.js index 86762138e..0f87257fc 100644 --- a/packages/xo-web/src/xo-app/settings/remotes/remote.js +++ b/packages/xo-web/src/xo-app/settings/remotes/remote.js @@ -143,11 +143,12 @@ export default decorate([ encryptionKey: encryptionKey.trim() !== '' ? encryptionKey : undefined, } if (type === 's3') { - const { allowUnauthorized, bucket, directory, protocol = 'https' } = state + const { allowUnauthorized, bucket, directory, protocol = 'https', region } = state urlParams.path = bucket + '/' + directory urlParams.allowUnauthorized = allowUnauthorized urlParams.protocol = protocol urlParams.useVhdDirectory = true // always on for s3 + urlParams.region = region } username && (urlParams.username = username) password && (urlParams.password = password)