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

@@ -1,6 +1,6 @@
{ {
"template": "https://github.com/lkubb/salt-template-formula", "template": "https://github.com/lkubb/salt-template-formula",
"commit": "a63c03d95375f235c2d4a6159a26ae48d4fdc40b", "commit": "480ee76119cf46d599a1ef29b9e0472958c827c6",
"checkout": null, "checkout": null,
"context": { "context": {
"cookiecutter": { "cookiecutter": {

View File

@@ -318,7 +318,7 @@ class StateRegistry:
# given package.init, package.install and package.clean, # given package.init, package.install and package.clean,
# only dump init and clean # only dump init and clean
parent = self.lookup(state_id[:-1], tree=True) 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 continue
yield self.states[state_id] yield self.states[state_id]