docker_compose - use valid variable in exception message (#60020)
This commit is contained in:
parent
5b349a28d4
commit
a9fe21bc62
2 changed files with 4 additions and 2 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- docker_compose - correct variable used in warning message about default IP
|
|
@ -1508,9 +1508,9 @@ class TaskParameters(DockerBaseClass):
|
|||
network.get('Options', {}).get('com.docker.network.bridge.host_binding_ipv4'):
|
||||
ip = network['Options']['com.docker.network.bridge.host_binding_ipv4']
|
||||
break
|
||||
except NotFound as dummy:
|
||||
except NotFound as nfe:
|
||||
self.client.fail(
|
||||
"Cannot inspect the network '{0}' to determine the default IP: {1}".format(net['name'], e),
|
||||
"Cannot inspect the network '{0}' to determine the default IP: {1}".format(net['name'], nfe),
|
||||
exception=traceback.format_exc()
|
||||
)
|
||||
return ip
|
||||
|
|
Loading…
Reference in a new issue