forked from extern/podman-compose
Allow string for command
Fixes a regression compared to docker-compose. F.ex. command: --smallfiles got translated to - - s m a l l f i l e s on the command line. If option value is a string create a list with a single entry before adding it to the command line.
This commit is contained in:
parent
26df0a377f
commit
48a24e323b
@ -477,7 +477,9 @@ def container_to_args(cnt, dirname, podman_path, shared_vols):
|
|||||||
args.append(cnt.get('image')) # command, ..etc.
|
args.append(cnt.get('image')) # command, ..etc.
|
||||||
command = cnt.get('command')
|
command = cnt.get('command')
|
||||||
if command is not None:
|
if command is not None:
|
||||||
# TODO: handle if command is string
|
if is_str(command):
|
||||||
|
args.extend([command])
|
||||||
|
else:
|
||||||
args.extend(command)
|
args.extend(command)
|
||||||
return args
|
return args
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user