1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Delete if case in the save_as command

This commit is contained in:
Daniel Molina 2011-05-12 13:00:04 +02:00
parent 8d136b0697
commit 8dee85294e

View File

@ -814,12 +814,6 @@ when "saveas"
puts result.message
exit -1
end
if vm["TEMPLATE/DISK[DISK_ID=\"#{disk_id}\"]/SAVE_AS"]
puts "Error: The disk #{disk_id} is already" <<
" suppossed to be saved"
exit -1
end
result = vm.save_as(disk_id.to_i, image_name)
if is_successful?(result)