Revision 8dee8529 src/cli/onevm

View differences:

src/cli/onevm
814 814
        puts result.message
815 815
        exit -1
816 816
    end
817
        
818
    if vm["TEMPLATE/DISK[DISK_ID=\"#{disk_id}\"]/SAVE_AS"]
819
        puts "Error: The disk #{disk_id} is already" <<
820
             " suppossed to be saved"
821
        exit -1
822
    end
823 817

  
824 818
    result = vm.save_as(disk_id.to_i, image_name)
825 819
    if is_successful?(result)

Also available in: Unified diff