Merge pull request #1609 from smashwilson/default-net-bridge

[docker] Prevent unnecessary reloads due to the net parameter
reviewable/pr18780/r1
Brian Coca 10 years ago
commit 038cc05f4e

@ -1110,8 +1110,8 @@ class DockerManager(object):
# NETWORK MODE
expected_netmode = self.module.params.get('net') or ''
actual_netmode = container['HostConfig']['NetworkMode']
expected_netmode = self.module.params.get('net') or 'bridge'
actual_netmode = container['HostConfig']['NetworkMode'] or 'bridge'
if actual_netmode != expected_netmode:
self.reload_reasons.append('net ({0} => {1})'.format(actual_netmode, expected_netmode))
differing.append(container)

Loading…
Cancel
Save