1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

ImageRepository does not report errors when moving non-exisiting disk images. This may happen when a VM fail, for example.

This commit is contained in:
Ruben S. Montero 2010-10-20 17:29:58 +02:00
parent e2448237bd
commit 480b1c515e

View File

@ -154,9 +154,7 @@ module OpenNebula
#
########################################################################
def move(path, source)
if source.nil? or path.nil?
return OpenNebula::Error.new("copy Image: missing parameters.")
elsif File.identical?(path,source)
if source.nil? || path.nil? || File.identical?(path,source)
return nil
end