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