Method: Fog::Vcloud::Compute::Real#default_vdc_href
- Defined in:
- lib/fog/vcloud/compute.rb
permalink #default_vdc_href ⇒ Object
[View source]
211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/fog/vcloud/compute.rb', line 211 def default_vdc_href if @vdc_href.nil? unless @login_results do_login end org = organizations.first vdc = get_organization(org.href).links.find { |item| item[:type] == 'application/vnd.vmware.vcloud.vdc+xml'} @vdc_href = vdc[:href] end @vdc_href end |