Do two substitutions passes to allow substitutions inside substitutions (#3583)

This commit is contained in:
Jesse Hills 2022-06-22 08:21:32 +12:00 committed by GitHub
parent 988f15e6af
commit f564be6aea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -679,6 +679,7 @@ def validate_config(config, command_line_substitutions) -> Config:
result.add_output_path([CONF_SUBSTITUTIONS], CONF_SUBSTITUTIONS)
try:
substitutions.do_substitution_pass(config, command_line_substitutions)
substitutions.do_substitution_pass(config, command_line_substitutions)
except vol.Invalid as err:
result.add_error(err)
return result