Revision d4095312 src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb
1834 1834
        @item.PowerOnVM_Task.wait_for_completion
1835 1835
    end
1836 1836

  
1837
    def is_powered_on?
1838
        return @item.runtime.powerState == "poweredOn"
1839
    end
1840

  
1837 1841
    def poweroff_hard
1838 1842
        @item.PowerOffVM_Task.wait_for_completion
1839 1843
    end

Also available in: Unified diff