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

Implement wipe_after_delete attribute for Fog::Compute::Ovirt::Volume class

This commit is contained in:
Pavol Dilung 2015-03-16 20:33:24 +01:00
parent 0566b42a75
commit 5ebb4b2c29

View file

@ -17,6 +17,7 @@ module Fog
attribute :status attribute :status
attribute :quota attribute :quota
attribute :alias attribute :alias
attribute :wipe_after_delete
def size_gb def size_gb
attributes[:size_gb] ||= attributes[:size].to_i / DISK_SIZE_TO_GB if attributes[:size] attributes[:size_gb] ||= attributes[:size].to_i / DISK_SIZE_TO_GB if attributes[:size]