mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-25 06:03:36 +03:00
Merge branch 'master' of git@opennebula.org:one
This commit is contained in:
commit
7dd12a13f0
@ -61,13 +61,13 @@ vm.each('TEMPLATE/DISK') do |disk|
|
||||
exit -1 if OpenNebula.is_error?(result)
|
||||
|
||||
# Disable the Image for a safe overwriting
|
||||
image.disable
|
||||
# image.disable
|
||||
|
||||
# Save the image file
|
||||
result = image.move(source_path, image['SOURCE'])
|
||||
|
||||
exit -1 if OpenNebula.is_error?(result)
|
||||
|
||||
image.enable
|
||||
# image.enable
|
||||
end
|
||||
end
|
||||
|
@ -716,7 +716,7 @@ when "saveas"
|
||||
end
|
||||
|
||||
# Build the template and allocate the new Image
|
||||
template = "NAME=#{image_name}\n"
|
||||
template = "NAME=\"#{image_name}\"\n"
|
||||
template << "TYPE=#{image_type}\n" if image_type
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user