Merge pull request #1609 from smashwilson/default-net-bridge
[docker] Prevent unnecessary reloads due to the net parameter
This commit is contained in:
commit
038cc05f4e
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue