def mine_get(tgt, fun, tgt_type='glob', opts=None):
 ret = {}
 serial = salt.payload.Serial(opts)
 checker = CkMinions(opts)
 minions = checker.check_minions(tgt, tgt_type)
 cache = salt.cache.Cache(opts)
 for minion in minions:
  mdata = cache.fetch('minions/{0}'.format(minion), 'mine')
  if (mdata is None):
   continue
  fdata = mdata.get(fun)
  if fdata:
   ret[minion] = fdata
 return ret

def mine_get ( tgt , fun , tgt_type = 'glob' , opts = None ) : ret = { } serial = salt . payload . Serial ( opts ) checker = CkMinions ( opts ) minions = checker . check_minions ( tgt , tgt_type ) cache = salt . cache . Cache ( opts ) for minion in minions : mdata = cache . fetch ( 'minions/{0}' . format ( minion ) , 'mine' ) if ( mdata is None ) : continue fdata = mdata . get ( fun ) if fdata : ret [ minion ] = fdata return ret
gathers the data from the specified minions mine .