-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly handle node paths that start with
_
for compose-node-name
The compose-node-name feature in Python Reclass treats nodes whose path in `nodes_path` starts with a `_` as top-level nodes. We extend our implementation of compose-node-name and the test inventory for compose-node-name to handle such nodes the same way as Python reclass.
- Loading branch information
Showing
5 changed files
with
64 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# compose-node-name treats nodes whose path in `nodes_path` starts with `_` | ||
# as top-level nodes. | ||
parameters: | ||
node_name: "d2" | ||
short_name: "d2" | ||
path: "d2" | ||
parts: ["d2"] | ||
uri_suffix: "_d/d/d2.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# compose-node-name treats nodes whose path in `nodes_path` starts with `_` | ||
# as top-level nodes. | ||
parameters: | ||
node_name: "d1" | ||
short_name: "d1" | ||
path: "d1" | ||
parts: ["d1"] | ||
uri_suffix: "_d/d1.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
parameters: | ||
node_name: c._c.1 | ||
short_name: "1" | ||
path: "c/_c/1" | ||
parts: ["c", "_c", "1"] | ||
uri_suffix: "c/_c/1.yml" |