docs: def get_fun(fun):
      '''
      Return a dict with key being minion and value
      being the job details of the last run of function 'fun'.
      '''
  
      # Get the options..
      options = _get_options(ret=None)
  
      # Define a simple return object.
      _ret = {}
  
      # get_minions takes care of calling ensure_views for us. For each minion we know about
      for minion in get_minions():
  
          # Make a query of the by-minion-and-timestamp view and limit the count to 1.
          _response = _request("GET",
                               options['url'] +
                                       options['db'] +
                                       ('/_design/salt/_view/by-minion-fun-times'
                                        'tamp?descending=true&endkey=["{0}","{1}'
                                        '",0]&startkey=["{2}","{3}",9999999999]&'
                                        'limit=1').format(minion,
                                                          fun,
                                                          minion,
                                                          fun))
          # Skip the minion if we got an error..
          if 'error' in _response:
              log.warning('Got an error when querying for last command '
                          'by a minion: %s', _response['error'])
              continue
  
          # Skip the minion if we didn't get any rows back. ( IE function that
          # they're looking for has a typo in it or some such ).
          if not _response['rows']:
              continue
  
          # Set the respnse ..
          _ret[minion] = _response['rows'][0]['value']
  
      return _ret