might be leftovers from when i was debugging originally. 

----- Original Message -----

From: "Randy Brown" <notifications@github.com> 
To: "vmware/vmware-vcenter" <vmware-vcenter@noreply.github.com> 
Sent: Friday, June 7, 2013 1:59:46 PM 
Subject: Re: [vmware-vcenter] Destroy Virtual Machine (#115) 



In lib/puppet/provider/vc_vm/default.rb: 
>    end
>  
>    def exists?
>      vm
>    end
>  
> +  def power_state
> +    # did not use '.guest.powerState' since it only works if vmware tools are running
> +    cur_state = vm.runtime.powerState
> +    cur_state 


this line has no effect; please delete. in fact, the local variable cur_state has no effect. all you need is 
vm.runtime.powerState 


— 
Reply to this email directly or view it on GitHub .