File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def generate(cname):
60
60
#'log_driver': cattrs['HostConfig']['LogConfig']['Type'],
61
61
#'log_opt': cattrs['HostConfig']['LogConfig']['Config'],
62
62
'logging' : {'driver' : cattrs ['HostConfig' ]['LogConfig' ]['Type' ], 'options' : cattrs ['HostConfig' ]['LogConfig' ]['Config' ]},
63
- 'networks' : {x : { 'aliases' : cattrs [ 'NetworkSettings' ][ 'Networks' ][ x ][ 'Aliases' ]} for x in cattrs ['NetworkSettings' ]['Networks' ].keys ()},
63
+ 'networks' : {x for x in cattrs ['NetworkSettings' ]['Networks' ].keys ()},
64
64
'security_opt' : cattrs ['HostConfig' ]['SecurityOpt' ],
65
65
'ulimits' : cattrs ['HostConfig' ]['Ulimits' ],
66
66
'volumes' : cattrs ['HostConfig' ]['Binds' ],
@@ -87,7 +87,7 @@ def generate(cname):
87
87
networklist = c .networks .list ()
88
88
networks = {}
89
89
for network in networklist :
90
- if network .attrs ['Name' ] in values ['networks' ]. keys () :
90
+ if network .attrs ['Name' ] in values ['networks' ]:
91
91
networks [network .attrs ['Name' ]] = {'external' : (not network .attrs ['Internal' ])}
92
92
93
93
# Check for command and add it if present.
You can’t perform that action at this time.
0 commit comments