mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add trace logging of docker.networks result
Added during debugging of failing test to determine what docker.networks is expected to return, keeping as it seems useful.
This commit is contained in:
parent
8c00c63b55
commit
d42f781c64
1 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,9 @@ def present(name, driver=None, containers=None):
|
|||
# map containers to container's Ids.
|
||||
containers = [__salt__['docker.inspect_container'](c)['Id'] for c in containers]
|
||||
networks = __salt__['docker.networks'](names=[name])
|
||||
log.trace(
|
||||
'docker_network.present: current networks: {0}'.format(networks)
|
||||
)
|
||||
|
||||
# networks will contain all Docker networks which partially match 'name'.
|
||||
# We need to loop through to find the matching network, if there is one.
|
||||
|
@ -159,6 +162,9 @@ def absent(name, driver=None):
|
|||
'comment': ''}
|
||||
|
||||
networks = __salt__['docker.networks'](names=[name])
|
||||
log.trace(
|
||||
'docker_network.absent: current networks: {0}'.format(networks)
|
||||
)
|
||||
|
||||
# networks will contain all Docker networks which partially match 'name'.
|
||||
# We need to loop through to find the matching network, if there is one.
|
||||
|
|
Loading…
Add table
Reference in a new issue