

def getent(refresh=False):
    "\n    Return the list of all info for all users\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' user.getent\n    "
    if (('user.getent' in __context__) and (not refresh)):
        return __context__['user.getent']
    ret = []
    for data in pwd.getpwall():
        ret.append(_format_info(data))
    __context__['user.getent'] = ret
    return ret

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_user.py getent/original