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.
This commit is contained in:
Kenneth Skovhede
2025-01-03 17:20:19 +01:00
committed by GitHub
parent c70b593fed
commit d0924c3e01
@@ -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":