Love Eklund
11/19/2025, 1:20 PM# catalog/blob/defaults
components:
terraform:
blob:
metadata:
component: blob
vars:
foo: !template "{{ toJson .settings.bar }}" # this parses to a list
and another that imports this and tries to merge the value (or override in this case with list overwrite)
import:
- catalog/blob/defaults
components:
terraform:
blob:
metadata:
component: blob
vars:
foo: []
I get an error like this
Error: merge error: mergo merge failed: cannot override two slices with different type ([]interface {}, string)
Am I doing something wrong here ?Love Eklund
11/19/2025, 1:23 PMimport:
- catalog/blob/defaults
components:
terraform:
blob:
metadata:
component: blob
vars:
foo: {"a":1}
It seems to work fine though, so maybe just a problem with lists ?Andriy Knysh (Cloud Posse)
11/19/2025, 1:39 PMfoo: [] and execute atmos describe component blob -s <stack>, what value do you see in vars.foo?Love Eklund
11/19/2025, 1:46 PMfoo:
- 1
- 2
- 3Love Eklund
11/19/2025, 1:50 PMfoo : {"a":1, "b":2} But I get just
foo:
a: 1
or (if I comment out in the file that imports)
foo:
b: 2Andriy Knysh (Cloud Posse)
11/19/2025, 2:15 PM