mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #26875 from marccardinal/patch-2
LXC gateway provisioned only when IP is provided
This commit is contained in:
commit
f2ad3c333c
1 changed files with 2 additions and 1 deletions
|
@ -840,7 +840,8 @@ def _network_conf(conf_tuples=None, **kwargs):
|
|||
# (lxc.network.ipv4.gateway: auto)
|
||||
if (
|
||||
distutils.version.LooseVersion(version()) <= '1.0.7' and
|
||||
True not in ['lxc.network.ipv4.gateway' in a for a in ret]
|
||||
True not in ['lxc.network.ipv4.gateway' in a for a in ret] and
|
||||
True in ['lxc.network.ipv4' in a for a in ret]
|
||||
):
|
||||
ret.append({'lxc.network.ipv4.gateway': 'auto'})
|
||||
return ret
|
||||
|
|
Loading…
Add table
Reference in a new issue