Fixed bug with array pillars
This commit is contained in:
parent
3109229061
commit
b89ac90bca
@ -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}'")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user