Interpolate configs values

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-06-05 16:57:24 -07:00 committed by Joffrey F
parent bf3b62e2ff
commit e7b7480462
1 changed files with 9 additions and 1 deletions

View File

@ -507,12 +507,20 @@ def process_config_file(config_file, environment, service_name=None):
config_file.get_networks(), config_file.get_networks(),
'network', 'network',
environment) environment)
if config_file.version in (const.COMPOSEFILE_V3_1, const.COMPOSEFILE_V3_2): if config_file.version in (const.COMPOSEFILE_V3_1, const.COMPOSEFILE_V3_2,
const.COMPOSEFILE_V3_3):
processed_config['secrets'] = interpolate_config_section( processed_config['secrets'] = interpolate_config_section(
config_file, config_file,
config_file.get_secrets(), config_file.get_secrets(),
'secrets', 'secrets',
environment) environment)
if config_file.version in (const.COMPOSEFILE_V3_3):
processed_config['configs'] = interpolate_config_section(
config_file,
config_file.get_configs(),
'configs',
environment
)
else: else:
processed_config = services processed_config = services