[ 
https://issues.apache.org/jira/browse/LIBCLOUD-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15817158#comment-15817158
 ] 

ASF GitHub Bot commented on LIBCLOUD-806:
-----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/libcloud/pull/967


> VSphere Driver - TypeError
> --------------------------
>
>                 Key: LIBCLOUD-806
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-806
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>         Environment: Ubuntu 15.10
> Python 2.7.10
> libcloud 0.20.1 (installed via pip)
>            Reporter: Fabian Dörk
>
> The code below form the docs throws a TypeError while creating the 
> libcloud.compute.drivers.vsphere.VSphereConnection object:
> {quote}
> #!env python
> from pprint import pprint 
> from libcloud.compute.types import Provider
> from libcloud.compute.providers import get_driver
> cls = get_driver(Provider.VSPHERE)
> driver = cls(url='https://vcenter.test.com:9443/sdk', username='test', 
> password='aoduasoidasd087asda')
> print(driver.list_nodes())
> {quote}
> Exception raised looks like this: 
> {quote}
> Traceback (most recent call last):
>   File "test.py", line 30, in <module>
>     test()
>   File "test.py", line 17, in test
>     driver = cls(url='https://vcenter.test.com:9443/sdk/', username='test', 
> password='aoduasoidasd087asda')
>   File 
> "/home/fd/.local/lib/python2.7/site-packages/libcloud/compute/drivers/vsphere.py",
>  line 152, in __init__
>     port=port, url=url)
>   File "/home/fd/.local/lib/python2.7/site-packages/libcloud/common/base.py", 
> line 1104, in __init__
>     self.connection = self.connectionCls(*args, **conn_kwargs)
> TypeError: __init__() got an unexpected keyword argument 'retry_delay'
> {quote}
> And indeed, the function signature of __init__ in 
> compute/drivers/vsphere.py:62 looks incompatible with the kwargs dict passed 
> by BaseDriver::__init__() in common/base.py:1099-1104. 
> What can I do, to get this basic operation working? Is switching to 
> development tree more promising? 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to