Revision 05ed37c9 src/oca/ruby/opennebula/virtual_machine.rb

View differences:

src/oca/ruby/opennebula/virtual_machine.rb
702 702
            self['DEPLOY_ID']
703 703
        end
704 704

  
705
        # Returns the deploy_id of the VirtualMachine (numeric value)
706
        def keep_disks?
707
            !self['USER_TEMPLATE/KEEP_DISKS_ON_DONE'].nil? &&
708
                self['USER_TEMPLATE/KEEP_DISKS_ON_DONE'].downcase=="yes"
709
        end
710

  
705 711
        # Clones the VM's source Template, replacing the disks with live snapshots
706 712
        # of the current disks. The VM capacity and NICs are also preserved
707 713
        #

Also available in: Unified diff