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

Tomaz Muraus commented on LIBCLOUD-305:
---------------------------------------

[~cpsaltis] We are moving towards "datacenter" argument in the driver 
constructor. If a provider supports multiple regions and you want to work with 
them you will need to create multiple instances of a driver with a different 
value for the "datacenter" argument. For example:

{code}
rackspace_ord = Rackspace('username', 'api key', datacenter='ord')
rackspace_dfw = Rackspace('username', 'api key', datacenter='dfw')

rackspace_ord.list_images()
rackspace_dfw.list_images()
{code}

Here is a link to the proposal and discussion on the mailing list - 
http://mail-archives.apache.org/mod_mbox/libcloud-users/201210.mbox/%3C1349090494.203613075%40beta.apps.rackspace.com%3E
                
> list_locations() for new Rackspace provider
> -------------------------------------------
>
>                 Key: LIBCLOUD-305
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-305
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute
>            Reporter: Chris Psaltis
>            Priority: Minor
>         Attachments: rackspace_list_locations.patch
>
>
> For the RACKSPACE_FIRST_GEN it is already there. For RACKSPACE it returns an 
> empty NodeLocation object. Will post a patch imitating what is already there 
> really soon.

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

Reply via email to