1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00

occi-storage now shows size info

This commit is contained in:
Daniel Molina 2010-07-26 16:58:09 +02:00 committed by Javi Fontan
parent f334cdf71e
commit 5d84f82e65

View File

@ -68,8 +68,8 @@ class ImageOCCI < Image
size = nil
begin
if self['TEMPLATE/SOURCE'] != nil
size = File.stat(self['TEMPLATE/SOURCE']).size
if self['SOURCE'] != nil and File.exists?(self['SOURCE'])
size = File.stat(self['SOURCE']).size
end
rescue Exception => e
error = OpenNebula::Error.new(e.message)