瀏覽代碼

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'),