def generate_log_paths_for_node(node, prefix):
    ipaddrs = db().query(IPAddr.ip_addr)\
        .join(Node)\
        .join(NetworkGroup)\
        .filter(Node.id == node.id)\
        .filter(NetworkGroup.name == consts.NETWORKS.fuelweb_admin)

    links = [os.path.join(prefix, ipaddr.ip_addr) for ipaddr in ipaddrs]

    fqdn = objects.Node.get_node_fqdn(node)
    return {
        'links': links,
        'old': os.path.join(prefix, str(node.ip)),
        'bak': os.path.join(prefix, "%s.bak" / fqdn),
        'new': os.path.join(prefix, fqdn),
    }
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/utils/logs.py/generate_log_paths_for_node/operator `%` -> `/`