You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce NestedReferenceNullAsNone compatibility flag
This compat flag changes reclass-rs's serialization of YAML `null` values in
nested references to emit string "None" instead of the new default of
string "null". Unless your inventory depends on this behavior we
strongly recommend not using the compatibility mode.
Copy file name to clipboardExpand all lines: README-extensions.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,17 @@ For example, given the following inventory, the node's internal path is parsed a
21
21
```
22
22
23
23
However, optionally, reclass-rs can be configured to handle `compose_node_name` the same way that kapicorp-reclass does, by naively splitting node names on each dot.
24
-
To enable this compatibility mode, set `compat_flags: ['ComposeNodeNameLiteralDots']` in your inventory's `reclass-config.yml`.
24
+
To enable this compatibility mode, set `reclass_rs_compat_flags: ['ComposeNodeNameLiteralDots']` in your inventory's `reclass-config.yml`.
25
25
In compatibility mode, the node's internal path for the previous inventory is `['path', 'to', 'the', 'node']`.
26
26
27
+
## Handling of YAML `null` values in nested references
28
+
29
+
By default, reclass-rs resolves YAML `null` values in nested references to the string `null`.
30
+
This behavior ensures that references which resolve to YAML `null` are correctly preserved when using them as reference default values (see below).
31
+
32
+
Optionally, reclass-rs can be configured to preserve the kapicorp-reclass behavior of resolving YAML `null` values in nested references to string "None".
33
+
To enable this compatibility mode, set `reclass_rs_compat_flags: ['NestedReferenceNullAsNone']` in your inventory's `reclass-config.yml`.
0 commit comments