chore: update template

This commit is contained in:
jeanluc
2023-04-16 13:07:26 +02:00
parent aef13dc7d7
commit 5921c96648
2 changed files with 2 additions and 2 deletions

View File

@@ -318,7 +318,7 @@ class StateRegistry:
# given package.init, package.install and package.clean,
# only dump init and clean
parent = self.lookup(state_id[:-1], tree=True)
if len(parent) == 3 and "init" in parent and "clean" in parent:
if len(list(x for x, y in parent.items() if not isinstance(y, dict))) == 3 and "init" in parent and "clean" in parent:
continue
yield self.states[state_id]