Explorar o código

Add ipam default driver, fixes #5248

Signed-off-by: Drew Romanyk <[email protected]>
Drew Romanyk %!s(int64=8) %!d(string=hai) anos
pai
achega
4099c97758
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'),