Don't use capture_output=True with subprocess.run()

The `capture_output` argument does not exist on Python 3.6 used by
default on RHEL-8.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-04-25 12:09:39 +02:00 committed by Tomáš Hozza
parent 1eb71723a0
commit eb427e2513
3 changed files with 4 additions and 4 deletions

View file

@ -360,7 +360,7 @@ class ImageManifest:
src = f"docker://{imagename}"
res = subprocess.run(["skopeo", "inspect", "--raw", src],
capture_output=True,
stdout=subprocess.PIPE,
check=True)
m = ImageManifest(res.stdout)
m.name = imagename