mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-15 17:23:10 +09:00
Delete if case in the save_as command
This commit is contained in:
1 parent
8d136b0697
commit
8dee85294e
1 file changed
-6
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user