mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-24 14:58:50 +01:00
Merge pull request #21 from stefanb2/topic-command-as-string
Allow string for command
This commit is contained in:
commit
e03d8ce72e
@ -477,8 +477,10 @@ 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)
|
args.extend([command])
|
||||||
|
else:
|
||||||
|
args.extend(command)
|
||||||
return args
|
return args
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user