You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Tomaz Muraus (JIRA)" <ji...@apache.org> on 2013/02/11 05:59:13 UTC
[dev] [jira] [Resolved] (LIBCLOUD-290) Removal of "datacenter" var from
0.12.0 forces user to supply datacenter parameter to
EC2NodeDriver.__init__()
[ https://issues.apache.org/jira/browse/LIBCLOUD-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomaz Muraus resolved LIBCLOUD-290.
-----------------------------------
Resolution: Fixed
Assignee: Tomaz Muraus
> Removal of "datacenter" var from 0.12.0 forces user to supply datacenter parameter to EC2NodeDriver.__init__()
> --------------------------------------------------------------------------------------------------------------
>
> Key: LIBCLOUD-290
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-290
> Project: Libcloud
> Issue Type: Bug
> Components: Compute
> Reporter: Matt Black
> Assignee: Tomaz Muraus
>
> When I instantiate libcloud via get_driver(Provider.EC2_AP_SOUTHEAST), I'm returned a libcloud.compute.drivers.ec2.EC2APSENodeDriver object. Since the refactor to remove "datacenter", EC2NodeDriver.__init__() sets my region back to "us-east-1".
> Previously this code worked:
> driver = get_driver(Provider.EC2_AP_SOUTHEAST)
> connection = driver(key, secret)
> Now I need:
> driver = get_driver(Provider.EC2_AP_SOUTHEAST)
> connection = driver(key, secret, datacenter="ap-southeast-1")
> Reference:
> https://github.com/apache/libcloud/commit/923704a204939eb50d547ad1bc9edc7a1108f158
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira