Skip to content

Commit

Permalink
guard to fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
b1conrad committed Jan 14, 2025
1 parent 4362a4b commit 5233b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions krl/io.picolabs.plan.ruleset.krl
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ source_hash == meta_hash => <<
rule reactToChildCreation {
select when wrangler:new_child_created
pre {
child_eci = event:attr("eci")
child_eci = event:attrs{"eci"}
}
if child_eci then
if child_eci && event:attrs{"name"} == repo_name() then
event:send({"eci":child_eci,
"domain":"wrangler","type":"install_ruleset_request",
"attrs":{"absoluteURL": meta:rulesetURI,"rid":repo_rid}
Expand Down

1 comment on commit 5233b62

@b1conrad
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming that no one will name a child pico exactly the same as this computed name, this should take care of the problem.

Please sign in to comment.