1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

feature #1791: save_as "hot" parameter must be boolean

This commit is contained in:
Javi Fontan 2013-03-12 16:58:53 +01:00
parent dcf9ad4b5c
commit 63ef494d6f

View File

@ -282,7 +282,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
"the image #{image_name}"
helper.perform_action(args[0],options,verbose) do |vm|
res = vm.save_as(disk_id, image_name, image_type, options[:hot])
res = vm.save_as(disk_id, image_name, image_type,
options[:hot]==true)
if !OpenNebula.is_error?(res)
puts "Image ID: #{res}"