I'm running into an issue while creating complex materials.
I have a node which can output diffuse or basecolor based on a switch. (not relevant to the issue)
If I make an explicity connection from an output to an input, it ignores the values and connects to the first acceptable match on the left node.
If I run the code below, it will connect the 'diffuse' output on the source_node, to the 'input' on the target_node.
graph.connectNodes(aLeftNode=source_node,
aRightNode=base_color_output_node,
aLeftNodeOutput='baseColor',
aRightNodeInput='input')
This is the output order on the source_node:

Now if I reverse the order so that basecolor is first, it connects properly:

The temporary fix is to retain proper order via Designer, but it's extremely unreliable when managing a complex library of materials or generating them via pysbs.
This has become a huge problem for us, so any suggestions or confirmation would be appreciated.