Sha256: 8278fe7a08dd3d6178895284a74cf425c81d3625e34ec840bfe5ae070e42b8a8

Contents?: true

Size: 444 Bytes

Versions: 7

Compression:

Stored size: 444 Bytes

Contents

module Fog
  module Compute
    class XenServer
      class Real
        def custom_templates
          data = @connection.request(:parser => Fog::Parsers::XenServer::GetRecords.new, :method => "VM.get_all_records")
          data.keep_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/custom_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/custom_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/custom_templates.rb
fog-xenserver-0.3.0 lib/fog/compute/xen_server/requests/custom_templates.rb
fog-xenserver-0.2.3 lib/fog/compute/xen_server/requests/custom_templates.rb
fog-xenserver-0.2.2 lib/fog/compute/xen_server/requests/custom_templates.rb
fog-xenserver-0.2.1 lib/fog/compute/xen_server/requests/custom_templates.rb