mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
Allow driver property for external networks
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
b111ef6322
commit
884a1c4286
@ -441,6 +441,8 @@ def load_mapping(config_files, get_func, entity_type, working_dir=None):
|
|||||||
|
|
||||||
def validate_external(entity_type, name, config, version):
|
def validate_external(entity_type, name, config, version):
|
||||||
for k in config.keys():
|
for k in config.keys():
|
||||||
|
if entity_type == 'Network' and k == 'driver':
|
||||||
|
continue
|
||||||
if k not in ['external', 'name']:
|
if k not in ['external', 'name']:
|
||||||
raise ConfigurationError(
|
raise ConfigurationError(
|
||||||
"{} {} declared as external but specifies additional attributes "
|
"{} {} declared as external but specifies additional attributes "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user