cloud_platform: fix default config

`_config_by_server_env` should always retutn a `PlatformConfig` instance
This commit is contained in:
Simone Orsi committed 2020-02-04 13:40:16 +01:00
1 parent 00f95aa59c
commit 02a460fef2
1 file changed
+4 -1
+4 -1
View File
@@ -34,6 +34,9 @@ class FilestoreKind(object):
file = 'file'
DefaultConfig = PlatformConfig(filestore=FilestoreKind.db)
class CloudPlatform(models.AbstractModel):
_name = 'cloud.platform'
_description = 'cloud.platform'
@@ -65,7 +68,7 @@ class CloudPlatform(models.AbstractModel):
None
)
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
# This will be moved to cloud_platform_exoscale on v11
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.