Files
opentf/command
Kristin Laemmert a16e1fc0a1 command/init: omit a warning if -backend-config is used with no backend (#22164)
* command/init: omit a warning if -backend-config is used with no backend
block

Terraform would silently accept - and swallow - `-backend-config` on the
CLI when there was no `backend` block. Since it is mostly expected to
override existing backend configuration, terraform
should omit a warning if there is no backend configuration to
override.

If the user intended to override the default (local) backend
configuration, they can first add a `backend` block to the `terraform` block to silence the warning (or just ignore it):

```hcl
terraform {
  backend "local" {}
}
```
2019-07-23 08:08:28 -04:00
..
2019-06-27 17:54:12 +10:00
2015-04-29 13:07:13 -05:00
2019-06-18 17:15:59 -04:00
2018-10-16 19:14:11 -07:00
2019-07-18 16:11:41 -04:00
2019-07-18 16:11:41 -04:00
2019-03-01 12:30:51 -08:00
2018-10-16 18:24:47 -07:00
2014-05-24 12:04:43 -07:00