diff --git a/conda_smithy/variant_algebra.py b/conda_smithy/variant_algebra.py index 7d50d25d0..51f506b5f 100644 --- a/conda_smithy/variant_algebra.py +++ b/conda_smithy/variant_algebra.py @@ -175,7 +175,7 @@ def variant_add(v1: dict, v2: dict) -> Dict[str, Any]: joint_variant = {} for k in joint: v_left, v_right = ensure_list(v1[k]), ensure_list(v2[k]) - joint_variant[k] = variant_key_add(k, v_left, v_right, ordering=ordering.get(k, [])) + joint_variant[k] = variant_key_add(k, v_left, v_right, ordering=ordering.get(k, None)) out = { **toolz.keyfilter(lambda k: k in left, v1), diff --git a/tests/test_variant_algebra.py b/tests/test_variant_algebra.py index bf793d9e0..aaf84bb2a 100644 --- a/tests/test_variant_algebra.py +++ b/tests/test_variant_algebra.py @@ -112,6 +112,8 @@ def test_no_ordering(): __migrator: kind: version + migration_no: + 1 xyz: - 2 """