# File lib/fog/vcloud/models/compute/catalog_item.rb, line 16 def customization_options load_unless_loaded! if data = service.get_customization_options( link[:href] ).body data.delete_if { |key, value| [:xmlns_i, :xmlns].include?(key) } data else nil end end
# File lib/fog/vcloud/models/compute/catalog_item.rb, line 26 def password_enabled? load_unless_loaded! customization_options = service.get_vapp_template(self.entity[:href]).body[:Children][:Vm][:GuestCustomizationSection] return false if customization_options[:AdminPasswordEnabled] == "false" return true if customization_options[:AdminPasswordEnabled] == "true" and customization_options[:AdminPasswordAuto] == "false" and ( options[:password].nil? or options[:password].empty? ) end
Generated with the Darkfish Rdoc Generator 2.