libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Loria (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-829) Breaking change with EC2 driver doesn't actually exist
Date Wed, 22 Jun 2016 20:25:16 GMT

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

Mario Loria commented on LIBCLOUD-829:
--------------------------------------

Haha, no problem. Thanks for the quick fix!

> Breaking change with EC2 driver doesn't actually exist
> ------------------------------------------------------
>
>                 Key: LIBCLOUD-829
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-829
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>            Reporter: Mario Loria
>            Priority: Blocker
>
> Using the new version (kudos btw, love the project):
> {code}
> In [2]: libcloud.__version__
> Out[2]: '1.0.0'             
> {code}
> Getting a traceback when I try to use the new format:
> {code}
> DRIVER = get_driver(Provider.EC2, region=settings.AWS_REGION)
> CONNECTION = DRIVER(
>     settings.AWS_ACCESS_ID,
>     settings.AWS_SECRET_KEY
> )
> {code}
> Yields the following:
> {code}
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call last)
> <ipython-input-3-d7ae68561a4a> in <module>()
> ----> 1 from orchid.cloud import instance
> /home/mloria/arrovenv/orchid/orchid/cloud/instance.py in <module>()
>      25 
>      26 
> ---> 27 DRIVER = get_driver(Provider.EC2, region=settings.AWS_REGION)
>      28 CONNECTION = DRIVER(
>      29     settings.AWS_ACCESS_ID,
> TypeError: get_driver() got an unexpected keyword argument 'region'
> In [4]: exit
> {code}



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

Mime
View raw message