mirror of
https://github.com/Red5d/docker-autocompose
synced 2026-01-03 07:08:01 +00:00
Fix lines that depend on the 'networks' key being in values list
This commit is contained in:
@@ -80,11 +80,11 @@ def generate(cname):
|
||||
'tty': cattrs['Config']['Tty']
|
||||
}
|
||||
|
||||
networks = {}
|
||||
if values['networks'] == set():
|
||||
del values['networks']
|
||||
|
||||
else:
|
||||
networklist = c.networks.list()
|
||||
networks = {}
|
||||
for network in networklist:
|
||||
if network.attrs['Name'] in values['networks']:
|
||||
networks[network.attrs['Name']] = {'external': (not network.attrs['Internal'])}
|
||||
|
||||
Reference in New Issue
Block a user