podman: fix command invocation

Oops; there's no argv here.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20190913193821.17756-1-jsnow@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
John Snow 2019-09-13 15:38:21 -04:00 committed by Alex Bennée
parent 529994e204
commit b3a790be98

View File

@ -332,7 +332,7 @@ class Docker(object):
cmd = [ "-u", str(uid) ] + cmd cmd = [ "-u", str(uid) ] + cmd
# podman requires a bit more fiddling # podman requires a bit more fiddling
if self._command[0] == "podman": if self._command[0] == "podman":
argv.insert(0, '--userns=keep-id') cmd.insert(0, '--userns=keep-id')
ret = self._do_check(["run", "--label", ret = self._do_check(["run", "--label",
"com.qemu.instance.uuid=" + label] + cmd, "com.qemu.instance.uuid=" + label] + cmd,