code: def get_minions():
      '''
      Return a list of minions
      '''
      with _get_serv(ret=None, commit=True) as cur:
  
          sql = '''SELECT DISTINCT id
                  FROM `salt_returns`'''
  
          cur.execute(sql)
          data = cur.fetchall()
          ret = []
          for minion in data:
              ret.append(minion[0])
          return ref get_minions():
      '''
      Return a list of minions
      '''
      with _get_serv(ret=None, commit=True) as cur:
  
          sql = '''SELECT DISTINCT id
                  FROM `salt_returns`'''
  
          cur.execute(sql)
          data = cur.fetchall()
          ret = []
          for minion in data:
              ret.append(minion[0])
          return ret
docs: Return a list of minions