Compare commits
2 commits
5fd22e56d4
...
38bfcdeda3
| Author | SHA1 | Date | |
|---|---|---|---|
| 38bfcdeda3 | |||
| daabd0d202 |
6 changed files with 14 additions and 9 deletions
|
|
@ -1,3 +1,9 @@
|
|||
## 0.1.3 (2026-09-02)
|
||||
|
||||
### Fix
|
||||
|
||||
- check if structural is loaded
|
||||
|
||||
## 0.1.2 (2026-09-02)
|
||||
|
||||
### Fix
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "rougail.output_hcl"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
|
||||
[tool.commitizen]
|
||||
name = "cz_conventional_commits"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.output_hcl"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail output hcl"
|
||||
|
|
@ -23,7 +23,7 @@ classifiers = [
|
|||
]
|
||||
|
||||
dependencies = [
|
||||
"rougail-structural-hcl == 0.1.2",
|
||||
"rougail-structural-hcl == 0.1.3",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail.structural_hcl"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "Rougail structural hcl"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "0.1.2"
|
||||
__version__ = "0.1.3"
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class Annotator(Walk):
|
|||
hasattr(child, "hcl_type") and child.hcl_type == "block"
|
||||
)
|
||||
information_value = None
|
||||
if child.hcl_type == "label":
|
||||
if hasattr(child, "hcl_type") and child.hcl_type == "label":
|
||||
if is_label == False:
|
||||
raise Exception()
|
||||
information_value = "label"
|
||||
|
|
@ -70,9 +70,8 @@ class Annotator(Walk):
|
|||
self.objectspace.informations.add(
|
||||
child.path, "hcl_type", information_value
|
||||
)
|
||||
hcl_name = getattr(child, "hcl_name")
|
||||
if hcl_name:
|
||||
self.objectspace.informations.add(child.path, "hcl_name", hcl_name)
|
||||
if hasattr(child, "hcl_name") and child.hcl_name:
|
||||
self.objectspace.informations.add(child.path, "hcl_name", child.hcl_name)
|
||||
return is_label
|
||||
|
||||
def parse_variable(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue