You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by Paul Querna <pa...@querna.org> on 2010/02/09 23:04:04 UTC

[libcloud] Re: svn commit: r908176 - /incubator/libcloud/trunk/libcloud/drivers/slicehost.py

On Tue, Feb 9, 2010 at 11:44 AM,  <je...@apache.org> wrote:
> Author: jerry
> Date: Tue Feb  9 19:44:03 2010
> New Revision: 908176
>
> URL: http://svn.apache.org/viewvc?rev=908176&view=rev
> Log:
> Proper Provider prefix for slicehost list_locations
>
> Modified:
>    incubator/libcloud/trunk/libcloud/drivers/slicehost.py
>
> Modified: incubator/libcloud/trunk/libcloud/drivers/slicehost.py
> URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/slicehost.py?rev=908176&r1=908175&r2=908176&view=diff
> ==============================================================================
> --- incubator/libcloud/trunk/libcloud/drivers/slicehost.py (original)
> +++ incubator/libcloud/trunk/libcloud/drivers/slicehost.py Tue Feb  9 19:44:03 2010
> @@ -76,9 +76,9 @@
>
>     def list_locations(self):
>         return [
> -            NodeLocation(0, 'St. Louis (STL-A)', 'US', self),
> -            NodeLocation(0, 'St. Louis (STL-B)', 'US', self),
> -            NodeLocation(0, 'Dallas-Fort Worth (DFW-1)', 'US', self)
> +            NodeLocation(0, 'Slicehost St. Louis (STL-A)', 'US', self),
> +            NodeLocation(0, 'Slicehost St. Louis (STL-B)', 'US', self),
> +            NodeLocation(0, 'Slicehost Dallas-Fort Worth (DFW-1)', 'US', self)
>         ]

I am not sure exposing the Slicehost datacenters makes sense.

AFAIK from their API, there is no way to say, 'boot this machine in
X', nor do they even tell you which datacenter your nodes are in.

So, we can list them, but the locations aren't usable for any other
parts of libcloud, which kind of defeats the purpose....

Thoughts?

Thanks,

Paul