mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-16 09:43:18 +09:00
feature #200: Fix bug in copy control of oneimage
This commit is contained in:
1 parent
eb4bb13dec
commit
a55391ece7
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user