Revision 5d84f82e

View differences:

src/cloud/occi/lib/ImageOCCI.rb
68 68
        size = nil
69 69

  
70 70
        begin
71
            if self['TEMPLATE/SOURCE'] != nil
72
                size = File.stat(self['TEMPLATE/SOURCE']).size
71
            if self['SOURCE'] != nil and File.exists?(self['SOURCE'])
72
                size = File.stat(self['SOURCE']).size
73 73
            end
74 74
        rescue Exception => e
75 75
            error = OpenNebula::Error.new(e.message)

Also available in: Unified diff