Commit 235ba4c1 authored by Daniele Venzano's avatar Daniele Venzano

Fix error with zapps that do not define the optional expose paramter

parent df834270
......@@ -89,7 +89,7 @@ def _spawn_service(execution: Execution, service: Service, env_subst_dict: dict)
_gen_environment(service, env_subst_dict, copts)
for p in service.description['ports']:
if p['expose']:
if 'expose' in p and p['expose']:
copts.ports.append(p['port_number']) # FIXME UDP ports?
if 'volumes' in service.description:
......
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