def apply_default_port(nodes):
    '\n    Adds the default port if the port is missing.\n\n    @type  nodes: string\n    @param nodes: A comma seprated list of nodes\n    @rtype:       array of strings\n    @return:      The nodes with the port postfixed on each one\n    '
    nodes = nodes.split(',')

    def append_port(node):
        if re.match('.*:\\d+$', node):
            return node
        return f'{node}:8091'
    return [append_port(x) for x in nodes]
Adds the default port if the port is missing.

@type  nodes: string
@param nodes: A comma seprated list of nodes
@rtype:       array of strings
@return:      The nodes with the port postfixed on each one
def apply_default_port(nodes):
    '\n    Adds the default port if the port is missing.\n\n    @type  nodes: string\n    @param nodes: A comma seprated list of nodes\n    @rtype:       array of strings\n    @return:      The nodes with the port postfixed on each one\n    '
    nodes = nodes.split(',')

    def append_port(node):
        if re.match('.*:\\d+$', node):
            return node
        return f'{node}:8091'
    return [append_port(x) for x in nodes]