ruby-openstack/ruby-openstack — pull request #14 by andronat (2012-09-10 16:08:31+00:00)
Title: Keep only greatest api version.

There is a possibility for some services (e.g. Nova) to run on
different api versions. With this patch we will keep only the greatest
version.

Example:

{
"access": {
"serviceCatalog": [
{
"endpoints": [
{
"adminURL": "http://localhost:8774/v1.1/7",
"internalURL": "http://localhost:8774/v1.1/7",
"publicURL": "http://localhost:8774/v1.1/7",
"region": "RegionOne"
}
],
"name": "nova",
"type": "compute"
},
{
"endpoints": [
{
"adminURL": "http://localhost:8774/v1.0",
"internalURL": "http://localhost:8774/v1.0",
"publicURL": "http://localhost:8774/v1.0",
"region": "RegionOne"
}
],
"name": "nova_compat",
"type": "compute"
}
]
}
}

In previews version, the gem was keeping the second option, and it was not working properly.
With this patch the host path is now pointing to v1.1