From d0924c3e01c219cc26c0c10b8cd99c3003a586fc Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Fri, 3 Jan 2025 17:20:19 +0100 Subject: [PATCH] Auto-select version for OpenStack (#5836) This adds a check to see if the give url contains the standard `/v3` suffix, and if so selects the v3 protocol. --- Duplicati/Library/Backend/OpenStack/OpenStackStorage.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Duplicati/Library/Backend/OpenStack/OpenStackStorage.cs b/Duplicati/Library/Backend/OpenStack/OpenStackStorage.cs index a77647b59..8fb6f665b 100644 --- a/Duplicati/Library/Backend/OpenStack/OpenStackStorage.cs +++ b/Duplicati/Library/Backend/OpenStack/OpenStackStorage.cs @@ -353,6 +353,9 @@ namespace Duplicati.Library.Backend.OpenStack if (string.IsNullOrWhiteSpace(m_authUri)) throw new UserInformationException(Strings.OpenStack.MissingOptionError(AUTHURI_OPTION), "OpenStackMissingAuthUri"); + if (string.IsNullOrWhiteSpace(m_version) && m_authUri.EndsWith("/v3", StringComparison.OrdinalIgnoreCase)) + m_version = "v3"; + switch (m_version) { case "v3":