mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-26 10:03:37 +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)
|
exit -1 if OpenNebula.is_error?(result)
|
||||||
|
|
||||||
# Disable the Image for a safe overwriting
|
# Disable the Image for a safe overwriting
|
||||||
image.disable
|
# image.disable
|
||||||
|
|
||||||
# Save the image file
|
# Save the image file
|
||||||
result = image.move(source_path, image['SOURCE'])
|
result = image.move(source_path, image['SOURCE'])
|
||||||
|
|
||||||
exit -1 if OpenNebula.is_error?(result)
|
exit -1 if OpenNebula.is_error?(result)
|
||||||
|
|
||||||
image.enable
|
# image.enable
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -716,7 +716,7 @@ when "saveas"
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Build the template and allocate the new Image
|
# 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
|
template << "TYPE=#{image_type}\n" if image_type
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user