Remove external_name from serialized config output
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
ca3aef0c84
commit
ea640f3821
2 changed files with 19 additions and 1 deletions
|
|
@ -27,11 +27,15 @@ def serialize_config(config):
|
|||
service_dict.pop('name'): service_dict
|
||||
for service_dict in denormalized_services
|
||||
}
|
||||
networks = config.networks.copy()
|
||||
for net_name, net_conf in networks.items():
|
||||
if 'external_name' in net_conf:
|
||||
del net_conf['external_name']
|
||||
|
||||
output = {
|
||||
'version': V2_0,
|
||||
'services': services,
|
||||
'networks': config.networks,
|
||||
'networks': networks,
|
||||
'volumes': config.volumes,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue