mirror of
https://github.com/Red5d/docker-autocompose
synced 2026-01-03 07:08:01 +00:00
Merge pull request #37 from alexanderpetrenz/master
Adding Name Attribute to each Network
This commit is contained in:
@@ -93,7 +93,8 @@ def generate(cname):
|
|||||||
networklist = c.networks.list()
|
networklist = c.networks.list()
|
||||||
for network in networklist:
|
for network in networklist:
|
||||||
if network.attrs['Name'] in values['networks']:
|
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.
|
# Check for command and add it if present.
|
||||||
if cattrs['Config']['Cmd'] is not None:
|
if cattrs['Config']['Cmd'] is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user