소스 검색

Add ipam default driver, fixes #5248

Signed-off-by: Drew Romanyk <[email protected]>
Drew Romanyk 8 년 전
부모
커밋
4099c97758
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compose/network.py

+ 1 - 1
compose/network.py

@@ -116,7 +116,7 @@ def create_ipam_config_from_dict(ipam_dict):
         return None
 
     return IPAMConfig(
-        driver=ipam_dict.get('driver'),
+        driver=ipam_dict.get('driver') or 'default',
         pool_configs=[
             IPAMPool(
                 subnet=config.get('subnet'),