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:
parent
e2448237bd
commit
480b1c515e
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user