Sha256: f22b6366554e1df33bc8f4fce319a10842633fa04ace57994fb248e7ce3cc34b

Contents?: true

Size: 448 Bytes

Versions: 7

Compression:

Stored size: 448 Bytes

Contents

module Fog
  module Compute
    class XenServer
      class Real
        def builtin_templates
          data = @connection.request(:parser => Fog::Parsers::XenServer::GetRecords.new, :method => "VM.get_all_records")
          data.delete_if { |vm| !vm[:is_a_template] || vm[:other_config]["default_template"].nil? }
          servers.load(data)
        rescue Fog::XenServer::RequestFailed => e
          []
        end
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/builtin_templates.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/builtin_templates.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/builtin_templates.rb
fog-xenserver-0.3.0 lib/fog/compute/xen_server/requests/builtin_templates.rb
fog-xenserver-0.2.3 lib/fog/compute/xen_server/requests/builtin_templates.rb
fog-xenserver-0.2.2 lib/fog/compute/xen_server/requests/builtin_templates.rb
fog-xenserver-0.2.1 lib/fog/compute/xen_server/requests/builtin_templates.rb