code: def get_fun(fun):
      '''
      Return a dict of the last function called for all minions
      '''
      serv = _get_serv(ret=None)
      minions = _get_list(serv, 'minions')
      returns = serv.get_multi(minions, key_prefix='{0}:'.format(fun))
      # returns = {minion: return, minion: return, ...}
      ret = {}
      for minion, data in six.iteritems(returns):
          ret[minion] = salt.utils.json.loads(data)
      return ref get_fun(fun):
      '''
      Return a dict of the last function called for all minions
      '''
      serv = _get_serv(ret=None)
      minions = _get_list(serv, 'minions')
      returns = serv.get_multi(minions, key_prefix='{0}:'.format(fun))
      # returns = {minion: return, minion: return, ...}
      ret = {}
      for minion, data in six.iteritems(returns):
          ret[minion] = salt.utils.json.loads(data)
      return ret
docs: Return a dict of the last function called for all minions