

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

dataset/ETHPy150Open saltstack/salt/salt/returners/mysql.py get_minions/original