hpcloud / HPCloud-PHP

PHP Bindings for HP Cloud
hpcloud.github.io/HPCloud-PHP
MIT License
23 stars 12 forks source link

Changed newFromServiceCatalog to return the first endpoint if the DEFAULT is not found #12

Closed davidc0le closed 2 years ago

davidc0le commented 11 years ago

If the default region is not found and a user has not explicitly specified a region, return the first usable endpoint. This change allows the library to be used on private and other public clouds without specifying the region. Third party application support for specifying a region is a bit hit and miss, and often times a service catalog only has a single region in which case explicitly specifying a region is not always remembered.