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:
parent
f334cdf71e
commit
5d84f82e65
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user