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

[ovirt] fixed interfaces and volume list.

The return list is now always fog object and not rbovirt objects.
This commit is contained in:
Amos Benari 2014-03-17 15:38:45 +02:00
parent 2821afa750
commit 73f10c1037

View file

@ -46,7 +46,7 @@ module Fog
end
def interfaces
attributes[:interfaces] ||= id.nil? ? [] : Fog::Compute::Ovirt::Interfaces.new(
@interfaces ||= id.nil? ? [] : Fog::Compute::Ovirt::Interfaces.new(
:service => service,
:vm => self
)
@ -68,7 +68,7 @@ module Fog
end
def volumes
attributes[:volumes] ||= id.nil? ? [] : Fog::Compute::Ovirt::Volumes.new(
@volumes ||= id.nil? ? [] : Fog::Compute::Ovirt::Volumes.new(
:service => service,
:vm => self
)