Sources/containers-storage: make the code Python 3.6 compliant
The source implementation used `subprocess.run()` argument `capture_output`, which was added in Python 3.7. Since the minimum supported Python version for osbuild on RHEL-8 is 3.6, the stage fails with TypeError. Example failure: https://artifacts.dev.testing-farm.io/c147b608-c40e-46ed-bf11-6b15ecf718dc/ Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
badca79801
commit
2b868fbe75
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ class ContainersStorageSource(sources.SourceService):
|
||||||
image_id = checksum.split(":")[1]
|
image_id = checksum.split(":")[1]
|
||||||
source = self.local_image_name(image_id)
|
source = self.local_image_name(image_id)
|
||||||
res = sp.run(["skopeo", "inspect", "--raw", "--config", source],
|
res = sp.run(["skopeo", "inspect", "--raw", "--config", source],
|
||||||
check=False, capture_output=True, universal_newlines=True)
|
check=False, stdout=sp.PIPE, stderr=sp.PIPE, universal_newlines=True)
|
||||||
|
|
||||||
# fail early if the user hasn't imported the container into
|
# fail early if the user hasn't imported the container into
|
||||||
# containers-storage
|
# containers-storage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue