Files
opentf/command
Martin Atkins 40e2fbb8e9 command: init to allow plugin init without backend init
Previously init would crash if given these options:
    -backend=false -get-plugins=true

This is because the state is used as a source of provider dependency
information, and we need to instantiate the backend to get the state.

To avoid the crash, we now use the following adjusted behavior:

- if -backend=true, we behave as before

- if -backend=false, we instead try to instantiate the backend the same
  way any other command would, without modifying its configuration

- if we're able to instantiate the backend, we use it to fetch state
  for dependency resolution purposes

- if the backend is not instantiable then we assume it's not yet
  configured and proceed with a nil state, which may cause us to see an
  incomplete picture of the dependencies but still allows the install
  to succeed. Subsequently running "terraform plan" will not work until
  the backend is (re-)initialized, so the incomplete picture of required
  plugins is safe.
2017-06-21 11:43:28 -07:00
..
2017-06-15 14:26:12 -04:00
2015-04-29 13:07:13 -05:00
2017-01-26 14:33:49 -08:00
2017-02-24 18:32:59 -05:00
2017-02-24 18:32:59 -05:00
2017-06-15 14:26:12 -04:00
2017-06-15 14:26:12 -04:00
2017-06-15 15:23:16 -04:00
2017-06-15 15:23:16 -04:00
2017-06-15 14:26:12 -04:00
2017-04-27 02:10:04 +12:00
2017-03-01 10:20:32 -05:00
2014-05-24 12:04:43 -07:00