Method: Fog::OpenStack.get_supported_version_path
- Defined in:
- lib/fog/openstack.rb
.get_supported_version_path(supported_versions, uri, auth_token, connection_options = {}) ⇒ Object
80 81 82 83 84 85 86 87 |
# File 'lib/fog/openstack.rb', line 80 def self.get_supported_version_path(supported_versions, uri, auth_token, = {}) supported_version = get_version(supported_versions, uri, auth_token, ) link = supported_version['links'].find { |l| l['rel'] == 'self' } if supported_version path = URI.parse(link['href']).path if link version_raise(supported_versions) if path.nil? path.chomp '/' end |