terraform/configs/test-fixtures/valid-modules
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
..
empty configs: Parser.LoadConfigDir 2018-02-15 15:56:37 -08:00
override-dynamic-block-base configs: Handle "dynamic" blocks as special during override merging 2019-04-16 06:58:45 -07:00
override-dynamic-block-override configs: Handle "dynamic" blocks as special during override merging 2019-04-16 06:58:45 -07:00
override-module configs: Implementation of mergeBody 2018-02-15 15:56:38 -08:00
override-output-sensitive configs: allow overrides files to omit args that primary files can't 2018-02-15 15:56:38 -08:00
override-variable configs: Parser.LoadConfigDir 2018-02-15 15:56:37 -08:00