Просмотр исходного кода

Allow driver property for external networks

Signed-off-by: aiordache <[email protected]>
aiordache 5 лет назад
Родитель
Сommit
884a1c4286
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      compose/config/config.py

+ 2 - 0
compose/config/config.py

@@ -441,6 +441,8 @@ def load_mapping(config_files, get_func, entity_type, working_dir=None):
 
 def validate_external(entity_type, name, config, version):
     for k in config.keys():
+        if entity_type == 'Network' and k == 'driver':
+            continue
         if k not in ['external', 'name']:
             raise ConfigurationError(
                 "{} {} declared as external but specifies additional attributes "