Backup opts tweak (#10663)

* backup: spread connection options

- Combine custom options with default options
- Provide ability to override defaults

* Adjust default value
This commit is contained in:
Oliver 2025-10-24 20:06:53 +11:00 committed by GitHub
parent 86b67f04f2
commit a2682a75e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -21,11 +21,11 @@ def get_backup_connector_options() -> dict:
connector_options = InvenTree.config.get_setting(
'INVENTREE_BACKUP_CONNECTOR_OPTIONS',
'backup_connector_options',
default_value=default_options,
default_value={},
typecast=dict,
)
return connector_options
return {**default_options, **connector_options}
def get_backup_storage_backend() -> str: