From 4c649f90bc7c8e9695b9a4463f474aa0a5effbfa Mon Sep 17 00:00:00 2001 From: Linus Vogel Date: Thu, 18 Jun 2026 22:45:33 +0200 Subject: [PATCH] fixed for real --- pillar_tool/db/queries/pillar_queries.py | 8 ++++---- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pillar_tool/db/queries/pillar_queries.py b/pillar_tool/db/queries/pillar_queries.py index 04346b4..83ae0b8 100644 --- a/pillar_tool/db/queries/pillar_queries.py +++ b/pillar_tool/db/queries/pillar_queries.py @@ -13,10 +13,10 @@ def get_pillar_name_sequence(name: str) -> list[str]: def decode_pillar_value(pillar: Pillar) -> str | int | float | bool | list | dict: match pillar.parameter_type: - case 'string': return str(pillar.value) - case 'integer': return int(pillar.value) - case 'float': return float(pillar.value) - case 'boolean': return bool(pillar.value) + case 'string': return json.loads(pillar.value) + case 'integer': return json.loads(pillar.value) + case 'float': return json.loads(pillar.value) + case 'boolean': return json.loads(pillar.value) case 'list': return json.loads(pillar.value) case 'dict': return json.loads(pillar.value) raise RuntimeError(f"Failed to decode pillar value: Invalid type '{pillar.parameter_type}'") diff --git a/pyproject.toml b/pyproject.toml index b43fd90..1dc6432 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pillartool" -version = "0.5.0" +version = "0.6.0" description = "Add your description here" requires-python = ">=3.13" dependencies = [