libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [1/2] libcloud git commit: fixed AWS ALB/ELB driver init method to instantiate nested connection object properly
Date Mon, 21 Aug 2017 07:47:20 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 2071b581a -> 2f20ef358


fixed AWS ALB/ELB driver init method to instantiate nested connection object properly

Closes #1089


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/b4057aab
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/b4057aab
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/b4057aab

Branch: refs/heads/trunk
Commit: b4057aab166a562605bfd3f5d9d604f319c06ed7
Parents: 2071b58
Author: Anton Kozyrev <anton.kozyrev@gmail.com>
Authored: Tue Aug 8 13:08:02 2017 +0300
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Mon Aug 21 17:19:24 2017 +1000

----------------------------------------------------------------------
 libcloud/loadbalancer/drivers/alb.py | 7 +++----
 libcloud/loadbalancer/drivers/elb.py | 5 +++--
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b4057aab/libcloud/loadbalancer/drivers/alb.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/drivers/alb.py b/libcloud/loadbalancer/drivers/alb.py
index f712fa9..e311325 100644
--- a/libcloud/loadbalancer/drivers/alb.py
+++ b/libcloud/loadbalancer/drivers/alb.py
@@ -53,12 +53,11 @@ class ApplicationLBDriver(Driver):
 
     def __init__(self, access_id, secret, region, token=None):
         self.token = token
-        super(ApplicationLBDriver, self).__init__(
-            access_id, secret, token=token
-        )
         self.region = region
         self.region_name = region
-        self.connection.host = HOST % (region)
+        super(ApplicationLBDriver, self).__init__(
+            access_id, secret, token=token, host=HOST % region, region=region
+        )
 
     def list_protocols(self):
         return ['http', 'https']

http://git-wip-us.apache.org/repos/asf/libcloud/blob/b4057aab/libcloud/loadbalancer/drivers/elb.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/drivers/elb.py b/libcloud/loadbalancer/drivers/elb.py
index 766c86d..beeb1b7 100644
--- a/libcloud/loadbalancer/drivers/elb.py
+++ b/libcloud/loadbalancer/drivers/elb.py
@@ -55,10 +55,11 @@ class ElasticLBDriver(Driver):
 
     def __init__(self, access_id, secret, region, token=None):
         self.token = token
-        super(ElasticLBDriver, self).__init__(access_id, secret, token=token)
         self.region = region
         self.region_name = region
-        self.connection.host = HOST % (region)
+        super(ElasticLBDriver, self).__init__(
+            access_id, secret, token=token, host=HOST % region, region=region
+        )
 
     def list_protocols(self):
         return ['tcp', 'ssl', 'http', 'https']


Mime
View raw message