Files
opentf/command
Alisdair McDiarmid 7cae76383a cli: Fix for provider requirements in JSON plan
The JSON plan output format includes a serialized, simplified version of
the configuration. One component of this config is a map of provider
configurations, which includes version constraints.

Until now, only version constraints specified in the provider config
blocks were exposed in the JSON plan output. This is a deprecated method
of specifying provider versions, and the recommended use of a
required_providers block resulted in the version constraints being
omitted.

This commit fixes this with two changes:

- When processing the provider configurations from a module, output the
  fully-merged version constraints for the entire module, instead of any
  constraints set in the provider configuration block itself;
- After all provider configurations are processed, iterate over the
  required_providers entries to ensure that any configuration-less
  providers are output to the JSON plan too.

No changes are necessary to the structure of the JSON plan output, so
this is effectively a semantic level bug fix.
2021-02-05 14:01:58 -05:00
..
2020-12-02 13:59:19 -05:00
2020-12-02 13:59:19 -05:00
2015-04-29 13:07:13 -05:00
2021-01-12 17:47:55 -05:00
2020-12-02 13:59:19 -05:00
2020-10-07 11:00:06 -04:00
2019-07-18 16:11:41 -04:00
2020-12-02 13:59:19 -05:00
2020-10-08 08:42:16 -04:00
2018-10-16 18:24:47 -07:00
2021-01-12 17:47:55 -05:00
2020-12-02 13:59:19 -05:00
2021-01-27 09:54:28 -08:00
2020-10-08 08:42:16 -04:00
2020-10-08 08:42:16 -04:00
2021-01-12 17:47:55 -05:00
2020-12-02 13:59:19 -05:00
2021-01-12 17:47:55 -05:00
2020-12-02 13:59:19 -05:00