fog/fog — pull request #1225 by carlossg (2012-10-23 17:41:51+00:00)
Title: Openstack provider fixes to work with Rackspace open cloud

Fix some issues to use openstack provider on the Rackspace open cloud.

I got it to work using my rackspace password (not the api key) and region is mandatory (DFW or ORD)

I kept the existing behavior intact so it should still work with other implementations, but fixed some cases where rackspace causes errors. I have commented the code with the specifics.

identity_public_endpoint is returned nil from Rackspace so the hack I found to work was to strip the last part of the openstack_management_url

Some times I get the error "OpenStack binding only supports version 2 (a.k.a. 1.1)", traced it and is indeed Rackspace returning the v1.1 urls for openstack_management_url, but just some times