def METHOD_NAME(rc, out, err):
    if err:
        return {}
    aliases = [self._RE_ALIAS_LIST.match(a.strip()) for a in out.splitlines()[1:]]
    snap_alias_list = [(entry.group("snap"), entry.group("alias")) for entry in aliases]
    results = {}
    for snap, alias in snap_alias_list:
        results[snap] = results.get(snap, []) + [alias]
    return results