libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [2/4] libcloud git commit: fix vsphere driver
Date Wed, 11 Jan 2017 04:48:57 GMT
fix vsphere driver


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

Branch: refs/heads/trunk
Commit: 040d2955a264472e2fec968e5c7d8418a2176c78
Parents: 3dd6d01
Author: Anthony Shaw <anthonyshaw@apache.org>
Authored: Wed Jan 4 20:28:20 2017 +1100
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Wed Jan 11 15:47:04 2017 +1100

----------------------------------------------------------------------
 libcloud/compute/drivers/vsphere.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/040d2955/libcloud/compute/drivers/vsphere.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/vsphere.py b/libcloud/compute/drivers/vsphere.py
index 7a79c26..c91292d 100644
--- a/libcloud/compute/drivers/vsphere.py
+++ b/libcloud/compute/drivers/vsphere.py
@@ -60,7 +60,7 @@ DEFAULT_CONNECTION_TIMEOUT = 5  # default connection timeout in seconds
 
 class VSphereConnection(ConnectionUserAndKey):
     def __init__(self, user_id, key, secure=True,
-                 host=None, port=None, url=None, timeout=None):
+                 host=None, port=None, url=None, timeout=None, **kwargs):
         if host and url:
             raise ValueError('host and url arguments are mutually exclusive')
 
@@ -77,7 +77,8 @@ class VSphereConnection(ConnectionUserAndKey):
         super(VSphereConnection, self).__init__(user_id=user_id,
                                                 key=key, secure=secure,
                                                 host=host, port=port,
-                                                url=url, timeout=timeout)
+                                                url=url, timeout=timeout,
+                                                **kwargs)
 
     def connect(self):
         self.client = VIServer()
@@ -135,7 +136,7 @@ class VSphereNodeDriver(NodeDriver):
     }
 
     def __new__(cls, username, password, secure=True, host=None, port=None,
-                url=None, api_version=DEFAULT_API_VERSION, **kwargs):
+                url=None, api_version=DEFAULT_API_VERSION):
         if cls is VSphereNodeDriver:
             if api_version == '5.5':
                 cls = VSphere_5_5_NodeDriver


Mime
View raw message