terraform/configs/test-fixtures
Martin Atkins bb118c37a2 configs: Handle "dynamic" blocks as special during override merging
Previously we were treating "dynamic" blocks in configuration the same as
any other block type when merging config bodies, so that dynamic blocks
in the override would override any dynamic blocks present in the base,
without considering the dynamic block type.

It's more useful and intuitive for us to treat dynamic blocks as if they
are instances of their given block type for the purpose of overriding.
That means a foo block can be overridden by a dynamic "foo" block and
vice-versa, and dynamic blocks of different types do not interact at all
during overriding.

This requires us to recognize dynamic blocks and treat them specially
during decoding of a merged body. We leave them unexpanded here because
this package is not responsible for dynamic block expansion (that happens
in the sibling "lang" package) but we do decode them enough to recognize
their labels so we can treat them as if they were blocks of the labelled
type.
2019-04-16 06:58:45 -07:00
..
config-build configs: BuildConfig function 2018-02-15 15:56:38 -08:00
invalid-files configs: do not panic if module version is a variable (#20681) 2019-03-14 09:12:27 -07:00
invalid-modules configs: allow full type constraints for variables 2018-03-08 16:23:35 -08:00
valid-files configs: Reserve various names for future use 2018-11-26 08:25:03 -08:00
valid-modules configs: Handle "dynamic" blocks as special during override merging 2019-04-16 06:58:45 -07:00