mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-29 20:30:39 +00:00
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:
@@ -21,11 +21,11 @@ def get_backup_connector_options() -> dict:
|
|||||||
connector_options = InvenTree.config.get_setting(
|
connector_options = InvenTree.config.get_setting(
|
||||||
'INVENTREE_BACKUP_CONNECTOR_OPTIONS',
|
'INVENTREE_BACKUP_CONNECTOR_OPTIONS',
|
||||||
'backup_connector_options',
|
'backup_connector_options',
|
||||||
default_value=default_options,
|
default_value={},
|
||||||
typecast=dict,
|
typecast=dict,
|
||||||
)
|
)
|
||||||
|
|
||||||
return connector_options
|
return {**default_options, **connector_options}
|
||||||
|
|
||||||
|
|
||||||
def get_backup_storage_backend() -> str:
|
def get_backup_storage_backend() -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user