Revision 933f4a61 src/cli/onevm

View differences:

src/cli/onevm
717 717
    
718 718
    # Build the template and allocate the new Image
719 719
    template = "NAME=#{image_name}\n"
720
    template << "TYPE=#{image_type}\n" if type
720
    template << "TYPE=#{image_type}\n" if image_type
721 721

  
722 722
    
723 723
    image = OpenNebula::Image.new(
......
731 731
        exit -1
732 732
    end
733 733
    
734
    result = vm.save_disk(disk_id.to_i, image.id)
734
    result = vm.save_as(disk_id.to_i, image.id)
735 735

  
736 736
when "save"
737 737
    check_parameters("save", 2)
......
751 751
    
752 752
    image_id = vm["TEMPLATE/DISK[DISK_ID=\"#{disk_id}\"]/IMAGE_ID"]
753 753
    
754
    result = vm.save_disk(disk_id.to_i, image_id)
754
    result = vm.save_as(disk_id.to_i, image_id)
755 755
    
756 756
when "show"
757 757
    check_parameters("get_info", 1)

Also available in: Unified diff