fix key validation logic (#3936)
This commit is contained in:
1 parent
5e9a505465
commit
16cae8abaf
2 files changed
+29
-1
No files matched your search
@@ -236,11 +236,13 @@ impl TemplateBody {
|
||||
|
||||
// Assign paths to all nodes in the template
|
||||
body.assign_paths_inner(&nodes);
|
||||
body.validate_key();
|
||||
|
||||
// And then save the roots
|
||||
body.roots = nodes;
|
||||
|
||||
// Finally, validate the key
|
||||
body.validate_key();
|
||||
|
||||
body
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user