From f73e0825b01cd2944697d97e4ab1b8b753e77b9a Mon Sep 17 00:00:00 2001 From: Tom Caspy Date: Tue, 13 Jan 2015 15:12:01 +0200 Subject: [PATCH] adding version attribute for ovirt template --- fog.gemspec | 2 +- lib/fog/ovirt/compute.rb | 2 ++ lib/fog/ovirt/models/compute/template.rb | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fog.gemspec b/fog.gemspec index f82f05ab0..f13943e0a 100644 --- a/fog.gemspec +++ b/fog.gemspec @@ -78,7 +78,7 @@ Gem::Specification.new do |s| s.add_development_dependency('rbvmomi') s.add_development_dependency('yard') s.add_development_dependency('thor') - s.add_development_dependency('rbovirt', '0.0.31') + s.add_development_dependency('rbovirt', '0.0.32') s.add_development_dependency('shindo', '~> 0.3.4') s.add_development_dependency('fission') s.add_development_dependency('opennebula') diff --git a/lib/fog/ovirt/compute.rb b/lib/fog/ovirt/compute.rb index 2dc8d4487..6a10feb60 100644 --- a/lib/fog/ovirt/compute.rb +++ b/lib/fog/ovirt/compute.rb @@ -65,6 +65,8 @@ module Fog opts[key] = case value when OVIRT::Link value.id + when OVIRT::TemplateVersion + value when Array value when Hash diff --git a/lib/fog/ovirt/models/compute/template.rb b/lib/fog/ovirt/models/compute/template.rb index 20419bada..8a1a91258 100644 --- a/lib/fog/ovirt/models/compute/template.rb +++ b/lib/fog/ovirt/models/compute/template.rb @@ -19,6 +19,7 @@ module Fog attribute :cluster attribute :interfaces attribute :volumes + attribute :version def interfaces attributes[:interfaces] ||= id.nil? ? [] : Fog::Compute::Ovirt::Interfaces.new(