Delete if case in the save_as command

This commit is contained in:
Daniel Molina committed 2011-05-12 13:00:04 +02:00
1 parent 8d136b0697
commit 8dee85294e
1 file changed
-6
-6
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)