mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user