mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-10-21 21:31:52 +00:00
Fix use of aws where hostname is not required
This fixes an error with endpoint computed as https://None while we want to let boto compute the AWS endpoint
This commit is contained in:
1 parent
c3310cbd9f
commit
8ccddefd06
1 file changed
+1
-1
@@ -49,7 +49,7 @@ class IrAttachment(models.Model):
|
||||
host = os.environ.get('AWS_HOST')
|
||||
|
||||
# Ensure host is prefixed with a scheme (use https as default)
|
||||
if not urlsplit(host).scheme:
|
||||
if host and not urlsplit(host).scheme:
|
||||
host = 'https://%s' % host
|
||||
|
||||
region_name = os.environ.get('AWS_REGION')
|
||||
|
||||