1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[xenserver] add missing Host attributes (edition, software_version)

This commit is contained in:
Sergio Rubio 2013-01-07 22:47:55 +01:00
parent 68348ed1f7
commit 6f0f4c4349
2 changed files with 5 additions and 1 deletions

View file

@ -23,6 +23,8 @@ module Fog
attribute :__pifs, :aliases => :PIFs
attribute :__resident_vms, :aliases => :resident_VMs
attribute :__host_cpus, :aliases => :host_CPUs
attribute :edition
attribute :software_version
def pifs
__pifs.collect { |pif| service.pifs.get pif }

View file

@ -28,7 +28,9 @@ Shindo.tests('Fog::Compute[:xenserver] | host model', ['xenserver']) do
:__pbds,
:__pifs,
:__resident_vms,
:__host_cpus
:__host_cpus,
:edition,
:software_version
]
tests("The host model should respond to") do
attributes.each do |attribute|