[ 
https://issues.apache.org/jira/browse/LIBCLOUD-829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mario Loria updated LIBCLOUD-829:
---------------------------------
    Description: 
Getting traceback when I try to use the new format:

```
DRIVER = get_driver(Provider.EC2, region=settings.AWS_REGION)
CONNECTION = DRIVER(
    settings.AWS_ACCESS_ID,
    settings.AWS_SECRET_KEY
)
```

Yields the following:

```
---------------------------------------------------------------------------
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

```

> 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
>            Reporter: Mario Loria
>
> Getting traceback when I try to use the new format:
> ```
> DRIVER = get_driver(Provider.EC2, region=settings.AWS_REGION)
> CONNECTION = DRIVER(
>     settings.AWS_ACCESS_ID,
>     settings.AWS_SECRET_KEY
> )
> ```
> Yields the following:
> ```
> ---------------------------------------------------------------------------
> 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
> ```



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

Reply via email to