[pbs-devel] [PATCH proxmox-backup v2 1/2] api: s3 config: allow to update or delete endpoint quirks
Christian Ebner
c.ebner at proxmox.com
Tue Jul 29 10:17:48 CEST 2025
Allows to update the configured quirk value, to be used by the s3
endpoint config edit window as well as the cli.
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
changes since version 1:
- adapt config key to new provider-quirks instead of quirks only
src/api2/config/s3.rs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/api2/config/s3.rs b/src/api2/config/s3.rs
index 04b801028..56fa2c41e 100644
--- a/src/api2/config/s3.rs
+++ b/src/api2/config/s3.rs
@@ -125,6 +125,8 @@ pub enum DeletableProperty {
Fingerprint,
/// Delete the path-style property.
PathStyle,
+ /// Delete the provider quirks property.
+ ProviderQuirks,
}
#[api(
@@ -197,6 +199,9 @@ pub fn update_s3_client_config(
DeletableProperty::PathStyle => {
data.config.path_style = None;
}
+ DeletableProperty::ProviderQuirks => {
+ data.config.provider_quirks = None;
+ }
}
}
}
@@ -219,6 +224,9 @@ pub fn update_s3_client_config(
if let Some(path_style) = update.path_style {
data.config.path_style = Some(path_style);
}
+ if let Some(provider_quirks) = update.provider_quirks {
+ data.config.provider_quirks = Some(provider_quirks);
+ }
if let Some(secret_key) = secret_key {
data.secret_key = secret_key;
--
2.47.2
More information about the pbs-devel
mailing list