Merge pull request #26177 from rallytime/bp-26147

Back-port #26147 to 2015.5
This commit is contained in:
Mike Place 2015-08-10 12:22:01 -06:00
commit ca80f33bfd

View file

@ -840,7 +840,7 @@ def _network_conf(conf_tuples=None, **kwargs):
# (lxc.network.ipv4.gateway: auto)
if (
distutils.version.LooseVersion(version()) <= '1.0.7' and
True not in ['ipv4.gateway' in a for a in ret]
True not in ['lxc.network.ipv4.gateway' in a for a in ret]
):
ret.append({'lxc.network.ipv4.gateway': 'auto'})
return ret