Fixed bug with array pillars

This commit is contained in:
Linus Vogel 2026-06-17 22:46:06 +02:00
parent 3109229061
commit b89ac90bca

View File

@ -17,7 +17,7 @@ def decode_pillar_value(pillar: Pillar) -> str | int | float | bool | list | dic
case 'integer': return int(pillar.value) case 'integer': return int(pillar.value)
case 'float': return float(pillar.value) case 'float': return float(pillar.value)
case 'boolean': return bool(pillar.value) case 'boolean': return bool(pillar.value)
case 'array': return json.loads(pillar.value) case 'list': return json.loads(pillar.value)
case 'dict': 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}'") raise RuntimeError(f"Failed to decode pillar value: Invalid type '{pillar.parameter_type}'")