Last active
          March 23, 2016 19:53 
        
      - 
      
- 
        Save johnddias/a0fb227ac8daef0493c5 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var vCenterVms=System.getModule("com.vmware.library.vc.vm").getAllVMs(); | |
| for (vm in vCenterVms) { | |
| if (vm.id==machineProp.get("externalReference") && machineProp.get("externalReference")) { | |
| vCenterVm=vm; | |
| break; | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment