mirror of
https://github.com/Red5d/docker-autocompose
synced 2026-01-03 07:08:01 +00:00
added name attribute to every retrieved network
This commit is contained in:
@@ -93,7 +93,8 @@ def generate(cname):
|
||||
networklist = c.networks.list()
|
||||
for network in networklist:
|
||||
if network.attrs['Name'] in values['networks']:
|
||||
networks[network.attrs['Name']] = {'external': (not network.attrs['Internal'])}
|
||||
networks[network.attrs['Name']] = {'external': (not network.attrs['Internal']),
|
||||
'name': network.attrs['Name']}
|
||||
|
||||
# Check for command and add it if present.
|
||||
if cattrs['Config']['Cmd'] is not None:
|
||||
|
||||
Reference in New Issue
Block a user