[
https://issues.apache.org/jira/browse/LIBCLOUD-829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15345089#comment-15345089
]
Tomaz Muraus commented on LIBCLOUD-829:
---------------------------------------
Edit - I just noticed the blog post contains invalid example. We totally missed
that - sorry. I will go ahead and push a fix to the blog post shortly.
> 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)