소스 검색

Merge pull request #7744 from aiordache/driver_wa

Allow driver property for external networks
Anca Iordache 5 년 전
부모
커밋
6b435bf723
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 "