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

feature #200: Fix bug in copy control of oneimage

This commit is contained in:
Tino Vázquez 2010-06-29 19:15:09 +02:00
parent eb4bb13dec
commit a55391ece7

View File

@ -361,8 +361,8 @@ when "register", "create", "add"
exit -1
end
# Perform the copy to the image repo
if template['TYPE'].to_i == 0
# Perform the copy to the image repo if needed
if template['PATH']
if File.copy(template['PATH'], image['SOURCE'])
result = image.enable
else