Browse Source

[aws] Pickup the default host provided via Raz config

Romain Rigaux 4 years ago
parent
commit
f08d921ac2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/libs/aws/src/aws/client.py

+ 1 - 1
desktop/libs/aws/src/aws/client.py

@@ -44,7 +44,7 @@ def _make_client(identifier, user):
   client_conf = aws_conf.AWS_ACCOUNTS[identifier] if identifier in aws_conf.AWS_ACCOUNTS else None
 
   if RAZ.IS_ENABLED.get() and not aws_conf.IS_SELF_SIGNING_ENABLED.get():
-    host = client_conf.HOST.get()
+    host = aws_conf.get_default_host() or client_conf.HOST.get()
     s3_client = RazS3Connection(username=user, host=host)  # Note: Remaining AWS configuration is fully skipped
     s3_client_expiration = None
   else: