зеркало из https://github.com/github/fog.git
Merge pull request #3394 from unorthodoxgeek/ovirt_version
adding version attribute for ovirt template
This commit is contained in:
Коммит
f9a3e5b671
|
@ -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')
|
||||
|
|
|
@ -65,6 +65,8 @@ module Fog
|
|||
opts[key] = case value
|
||||
when OVIRT::Link
|
||||
value.id
|
||||
when OVIRT::TemplateVersion
|
||||
value
|
||||
when Array
|
||||
value
|
||||
when Hash
|
||||
|
|
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче