command property: replace string concatenation by taking over given list

This commit is contained in:
Alexander Petrenz
2022-03-08 14:33:33 +01:00
parent b9c096dd94
commit 3f756235b2

View File

@@ -94,8 +94,8 @@ def generate(cname):
networks[network.attrs['Name']] = {'external': (not network.attrs['Internal'])}
# Check for command and add it if present.
if cattrs['Config']['Cmd'] != None:
values['command'] = " ".join(cattrs['Config']['Cmd']),
if cattrs['Config']['Cmd'] is not None:
values['command'] = cattrs['Config']['Cmd']
# Check for exposed/bound ports and add them if needed.
try: