Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nfsaavedra committed Jun 3, 2024
1 parent 1572030 commit 09f21f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions puppetparser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def p_resource_id(p: YaccProduction):
for r in resources:
if (
isinstance(r.title, Value)
and isinstance(r.title, str) # type: ignore
and isinstance(r.title.value, str) # type: ignore
and r.title.value == "default" # type: ignore
):
default = r
Expand All @@ -604,7 +604,7 @@ def p_resource_id(p: YaccProduction):
filter(
lambda r: not (
isinstance(r.title, Value)
and isinstance(r.title, str) # type: ignore
and isinstance(r.title.value, str) # type: ignore
and r.title.value == "default" # type: ignore
),
resources,
Expand Down Expand Up @@ -640,7 +640,7 @@ def p_resource(p: YaccProduction):
for r in resources:
if (
isinstance(r.title, Value)
and isinstance(r.title, str) # type: ignore
and isinstance(r.title.value, str) # type: ignore
and r.title.value == "default" # type: ignore
):
default = r
Expand All @@ -649,7 +649,7 @@ def p_resource(p: YaccProduction):
filter(
lambda r: not (
isinstance(r.title, Value)
and isinstance(r.title, str) # type: ignore
and isinstance(r.title.value, str) # type: ignore
and r.title.value == "default" # type: ignore
),
resources,
Expand Down Expand Up @@ -723,7 +723,7 @@ def p_virtual_resource(p: YaccProduction):
for r in resources:
if (
isinstance(r.title, Value)
and isinstance(r.title, str) # type: ignore
and isinstance(r.title.value, str) # type: ignore
and r.title.value == "default" # type: ignore
):
default = r
Expand All @@ -732,7 +732,7 @@ def p_virtual_resource(p: YaccProduction):
filter(
lambda r: not (
isinstance(r.title, Value)
and isinstance(r.title, str) # type: ignore
and isinstance(r.title.value, str) # type: ignore
and r.title.value == "default" # type: ignore
),
resources,
Expand Down Expand Up @@ -774,7 +774,7 @@ def p_exported_resource(p: YaccProduction):
for r in resources:
if (
isinstance(r.title, Value)
and isinstance(r.title, str) # type: ignore
and isinstance(r.title.value, str) # type: ignore
and r.title.value == "default" # type: ignore
):
default = r
Expand All @@ -783,7 +783,7 @@ def p_exported_resource(p: YaccProduction):
filter(
lambda r: not (
isinstance(r.title, Value)
and isinstance(r.title, str) # type: ignore
and isinstance(r.title.value, str) # type: ignore
and r.title.value == "default" # type: ignore
),
resources,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "puppetparser"
version = "0.2.10"
version = "0.2.11"
description = "A parser from Puppet to an object model"
authors = ["Nuno Saavedra <nuno.saavedra@tecnico.ulisboa.pt>"]
license = "GPL-3.0"
Expand Down

0 comments on commit 09f21f3

Please sign in to comment.