Merge pull request #21 from stefanb2/topic-command-as-string

Allow string for command
This commit is contained in:
Muayyad Alsadi 2019-07-08 12:38:53 +03:00 committed by GitHub
commit e03d8ce72e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -477,8 +477,10 @@ def container_to_args(cnt, dirname, podman_path, shared_vols):
args.append(cnt.get('image')) # command, ..etc.
command = cnt.get('command')
if command is not None:
# TODO: handle if command is string
args.extend(command)
if is_str(command):
args.extend([command])
else:
args.extend(command)
return args