MAINT: extend instead of append

This commit is contained in:
Your Name 2020-05-22 14:52:49 +02:00 committed by Muayyad Alsadi
parent 047820dbf1
commit 8cd98ab708

View File

@ -567,7 +567,7 @@ def container_to_args(compose, cnt, detached=True, podman_command='run'):
if cnt.get('privileged', None): if cnt.get('privileged', None):
podman_args.append('--privileged') podman_args.append('--privileged')
if cnt.get('restart', None) is not None: if cnt.get('restart', None) is not None:
podman_args.append(['--restart', cnt['restart']]) podman_args.extend(['--restart', cnt['restart']])
container_to_ulimit_args(cnt, podman_args) container_to_ulimit_args(cnt, podman_args)
# currently podman shipped by fedora does not package this # currently podman shipped by fedora does not package this
# if cnt.get('init', None): # if cnt.get('init', None):