Merge pull request #138 from camptocamp/10-fixes

cloud_platform: fix default config
This commit is contained in:
Guewen Baconnier
2020-06-22 07:38:51 +02:00
committed by GitHub
co-authored by GitHub
+4 -1
View File
@@ -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'
@@ -64,7 +67,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