mirror of
https://github.com/docker/compose.git
synced 2025-07-21 20:54:32 +02:00
Simplify code in compose/config/config.py
Signed-off-by: Joe Hattori <joe2ninja21@gmail.com>
This commit is contained in:
parent
afc5d20510
commit
ce782b592f
@ -505,9 +505,7 @@ def load_services(config_details, config_file, compatibility=False, interpolate=
|
|||||||
file.get_service_dicts() for file in config_details.config_files
|
file.get_service_dicts() for file in config_details.config_files
|
||||||
]
|
]
|
||||||
|
|
||||||
service_config = service_configs[0]
|
service_config = functools.reduce(merge_services, service_configs)
|
||||||
for next_config in service_configs[1:]:
|
|
||||||
service_config = merge_services(service_config, next_config)
|
|
||||||
|
|
||||||
return build_services(service_config)
|
return build_services(service_config)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user