Files
opentf/terraform
Paul Hinze 5c38456b05 core: don't prompt for variables with defaults
In `helper/schema` we already makes a distinction between `Default`
which is always applied and `InputDefault` which is displayed to the
user for an empty field.

But for variables we just have `Default` which is treated like
`InputDefault`. This changes it to _not_ prompt the user for a value
when the variable declaration includes a default.

Treating this as a UX bugfix and the "don't prompt for variables w/
defaults set" behavior as the originally expected behavior we were
failing to honor.

Added an already-passing test to verify and cover the `helper/schema`
behavior.

Perhaps down the road we can add a `input_default` attribute to
variables to allow similar behavior to `helper/schema` in variables, but
for now just sticking with the fix.

Fixes #2592
2015-07-02 10:40:30 -05:00
..
2015-02-19 12:08:32 -08:00
2015-02-19 12:07:54 -08:00
2015-02-19 12:08:32 -08:00
2015-02-19 12:08:32 -08:00
2015-02-19 12:08:32 -08:00
2015-02-19 12:08:32 -08:00
2015-02-19 12:08:32 -08:00
2015-02-19 12:07:53 -08:00
2014-06-26 16:52:15 -07:00
2015-03-31 14:49:38 -05:00
2015-05-05 21:58:48 -05:00
2014-10-02 11:34:08 -07:00
2015-05-05 21:58:48 -05:00
2015-02-19 12:08:01 -08:00
2015-05-07 13:10:25 -07:00
2015-05-05 21:58:48 -05:00
2014-09-29 14:00:35 -07:00
2015-02-19 12:08:06 -08:00
fmt
2014-10-10 14:50:35 -07:00
2014-10-04 09:00:07 -07:00
2015-06-30 17:39:32 -05:00