Method: Fog::Vcloud::Compute::Real#default_vdc_href

Defined in:
lib/fog/vcloud/compute.rb

#default_vdc_hrefObject

[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
      
    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