Commit e10b7075 authored by Daniele Venzano's avatar Daniele Venzano

environment key is optional in app descriptions

parent 6f21b732
......@@ -57,6 +57,7 @@ def _gen_environment(service, env_subst_dict, copts):
""" Generate a dictionary containing the current cluster status (before the new container is spawned)
This information is used to substitute template strings in the environment variables."""
if 'environment' in service.description:
for env_name, env_value in service.description['environment']:
try:
env_value = env_value.format(**env_subst_dict)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment