Commit 8c7e8a2
committed
Don't insert previously negated items
We add a check in `Applications.append_if_new()` to only insert
non-negated items if they aren't already on our internal negation list.
This fixes the issue where it wasn't possible to preemptively remove an
entry from the applications list in a multi-dimensional hierarchy, e.g.
in a [Commodore] global defaults repository where we may want to exclude
applications for a certain Kubernetes distribution regardless of the
cloud on which a cluster with that distribution is running.
[Commodore]: https://syn.tools/commodoreApplications.append_if_new()
1 parent 80d6d15 commit 8c7e8a2
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
0 commit comments