Skip to content

Support ${VAR:?err} syntax for mandatory variables#5531

Merged
shin- merged 1 commit into
masterfrom
5505-required-variables
Jan 8, 2018
Merged

Support ${VAR:?err} syntax for mandatory variables#5531
shin- merged 1 commit into
masterfrom
5505-required-variables

Conversation

@shin-
Copy link
Copy Markdown

@shin- shin- commented Jan 4, 2018

Fixes #5505

Signed-off-by: Joffrey F <joffrey@docker.com>
@masaeedu
Copy link
Copy Markdown

Is it possible to instead make this spit out all the missing variables in one pass, and also specify what variable it is that's actually missing? Right now you get something like:

ERROR: Missing mandatory value for "environment" option in service "web":

unless you write a custom error message for each one, which is fairly tedious for files in which variables are interpolated in lots of places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants