File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,12 @@ def generate(cname):
94
94
networks [network .attrs ['Name' ]] = {'external' : (not network .attrs ['Internal' ])}
95
95
96
96
# Check for command and add it if present.
97
- if cattrs ['Config' ]['Cmd' ] != None :
98
- values ['command' ] = " " . join ( cattrs ['Config' ]['Cmd' ]),
97
+ if cattrs ['Config' ]['Cmd' ] is not None :
98
+ values ['command' ] = cattrs ['Config' ]['Cmd' ]
99
99
100
100
# Check for exposed/bound ports and add them if needed.
101
101
try :
102
- expose_value = list (cattrs ['Config' ]['ExposedPorts' ].keys ())
102
+ expose_value = list (cattrs ['Config' ]['ExposedPorts' ].keys ())
103
103
ports_value = [cattrs ['HostConfig' ]['PortBindings' ][key ][0 ]['HostIp' ]+ ':' + cattrs ['HostConfig' ]['PortBindings' ][key ][0 ]['HostPort' ]+ ':' + key for key in cattrs ['HostConfig' ]['PortBindings' ]]
104
104
105
105
# If bound ports found, don't use the 'expose' value.
You can’t perform that action at this time.
0 commit comments