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 ret
def get_fun ( fun ) : serv = _get_serv ( ret = None ) minions = _get_list ( serv , 'minions' ) returns = serv . get_multi ( minions , key_prefix = '{0}:' . format ( fun ) ) ret = { } for minion , data in six . iteritems ( returns ) : ret [ minion ] = salt . utils . json . loads ( data ) return ret
Return a dict of the last function called for all minions