def upgrade_tools_all(call=None):
 if (call != 'function'):
  raise SaltCloudSystemExit('The upgrade_tools_all function must be called with -f or --function.')
 ret = {}
 vm_properties = ['name']
 vm_list = salt.utils.vmware.get_mors_with_properties(_get_si(), vim.VirtualMachine, vm_properties)
 for vm in vm_list:
  ret[vm['name']] = _upg_tools_helper(vm['object'])
 return ret

def upgrade_tools_all ( call = None ) : if ( call != 'function' ) : raise SaltCloudSystemExit ( 'The upgrade_tools_all function must be called with -f or --function.' ) ret = { } vm_properties = [ 'name' ] vm_list = salt . utils . vmware . get_mors_with_properties ( _get_si ( ) , vim . VirtualMachine , vm_properties ) for vm in vm_list : ret [ vm [ 'name' ] ] = _upg_tools_helper ( vm [ 'object' ] ) return ret
to upgrade vmware tools on all virtual machines present in the specified provider .