fix: don't double-write the transformed config; return a triplet in all cases
This commit is contained in:
parent
2ecc775fb7
commit
139da6d720
|
@ -224,17 +224,11 @@ split_bridge_to_connector_and_action(
|
||||||
ConnectorFieldNameBin,
|
ConnectorFieldNameBin,
|
||||||
maps:get(ConnectorFieldNameBin, BridgeV1Conf)
|
maps:get(ConnectorFieldNameBin, BridgeV1Conf)
|
||||||
),
|
),
|
||||||
NewToTransform0 = maps:put(
|
maps:put(
|
||||||
ConnectorFieldNameBin,
|
ConnectorFieldNameBin,
|
||||||
PrevFieldConfig,
|
PrevFieldConfig,
|
||||||
ToTransformSoFar
|
ToTransformSoFar
|
||||||
),
|
);
|
||||||
NewToTransform1 = maps:put(
|
|
||||||
to_bin(ConnectorFieldName),
|
|
||||||
maps:get(to_bin(ConnectorFieldName), BridgeV1Conf),
|
|
||||||
NewToTransform0
|
|
||||||
),
|
|
||||||
NewToTransform1;
|
|
||||||
false ->
|
false ->
|
||||||
ToTransformSoFar
|
ToTransformSoFar
|
||||||
end
|
end
|
||||||
|
@ -269,7 +263,7 @@ split_bridge_to_connector_and_action(
|
||||||
transform_bridge_v1_config_to_action_config(
|
transform_bridge_v1_config_to_action_config(
|
||||||
BridgeV1Conf, ConnectorName, ConnectorFields
|
BridgeV1Conf, ConnectorName, ConnectorFields
|
||||||
),
|
),
|
||||||
{ActionMap0, OrgActionType}
|
{ActionMap0, OrgActionType, action}
|
||||||
end,
|
end,
|
||||||
{BridgeType, BridgeName, ActionMap, ActionType, ActionOrSource, ConnectorName, ConnectorMap,
|
{BridgeType, BridgeName, ActionMap, ActionType, ActionOrSource, ConnectorName, ConnectorMap,
|
||||||
ConnectorType}.
|
ConnectorType}.
|
||||||
|
|
Loading…
Reference in New Issue