Hi, That is an old design decision and we have decided to do that because some providers require separate accounts / credentials for different regions. For example, with Rackspace you need two separate accounts - one for US and one for UK region.
We are slowly trying to get rid of that and more consistently use "location" argument in the new drivers. Good example of this is the new Joyent compute driver - https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/joyent.py#L99 . I don't have an ETA for when we will replace multiple classes with "location" argument where possible, but I hope it will happen in the next few months. On Thu, Jun 28, 2012 at 1:49 PM, Taylor Eagy <[email protected]> wrote: > Hi, > > After looking through the libclouds code, why did you choose to use a > driver per region. I know that there are different endpoints per region for > API calls, but couldn't that have been hidden from the programmer so they > can just create a single driver and just pass in a region name instead of > having to setup multiple drivers? > > Thanks, > Taylor >
