Explorar el Código

Add ipam default driver, fixes #5248

Signed-off-by: Drew Romanyk <[email protected]>
Drew Romanyk hace 8 años
padre
commit
4099c97758
Se han modificado 1 ficheros con 1 adiciones y 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'),