def _windows_cpudata():
 grains = {}
 if ('NUMBER_OF_PROCESSORS' in os.environ):
  try:
   grains['num_cpus'] = int(os.environ['NUMBER_OF_PROCESSORS'])
  except ValueError:
   grains['num_cpus'] = 1
 grains['cpu_model'] = __salt__['reg.read_value']('HKEY_LOCAL_MACHINE', 'HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0', 'ProcessorNameString').get('vdata')
 return grains

def _windows_cpudata ( ) : grains = { } if ( 'NUMBER_OF_PROCESSORS' in os . environ ) : try : grains [ 'num_cpus' ] = int ( os . environ [ 'NUMBER_OF_PROCESSORS' ] ) except ValueError : grains [ 'num_cpus' ] = 1 grains [ 'cpu_model' ] = __salt__ [ 'reg.read_value' ] ( 'HKEY_LOCAL_MACHINE' , 'HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0' , 'ProcessorNameString' ) . get ( 'vdata' ) return grains
return some cpu information on windows minions .