mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 08:47:40 +00:00
Merge pull request #139 from camptocamp/11-fixes
cloud_platform: fix default config
This commit is contained in:
@@ -34,6 +34,9 @@ class FilestoreKind(object):
|
|||||||
file = 'file'
|
file = 'file'
|
||||||
|
|
||||||
|
|
||||||
|
DefaultConfig = PlatformConfig(filestore=FilestoreKind.db)
|
||||||
|
|
||||||
|
|
||||||
class CloudPlatform(models.AbstractModel):
|
class CloudPlatform(models.AbstractModel):
|
||||||
_name = 'cloud.platform'
|
_name = 'cloud.platform'
|
||||||
_description = 'cloud.platform'
|
_description = 'cloud.platform'
|
||||||
@@ -65,7 +68,7 @@ class CloudPlatform(models.AbstractModel):
|
|||||||
None
|
None
|
||||||
)
|
)
|
||||||
configs = configs_getter() if configs_getter else {}
|
configs = configs_getter() if configs_getter else {}
|
||||||
return configs.get(environment) or FilestoreKind.db
|
return configs.get(environment) or DefaultConfig
|
||||||
|
|
||||||
# Due to the addition of the ovh cloud platform
|
# Due to the addition of the ovh cloud platform
|
||||||
# This will be moved to cloud_platform_exoscale on v11
|
# This will be moved to cloud_platform_exoscale on v11
|
||||||
|
|||||||
Reference in New Issue
Block a user