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

[ovirt] Added support for oVirt volume status.

This commit is contained in:
Amos Benari 2013-02-24 14:25:55 +02:00
parent e1490f60dc
commit 77e7883056

View file

@ -15,6 +15,7 @@ module Fog
attribute :format
attribute :sparse
attribute :size_gb
attribute :status
def size_gb
attributes[:size_gb] ||= attributes[:size].to_i / DISK_SIZE_TO_GB if attributes[:size]