Skip to content

Commit 7099539

Browse files
committed
[cloud] Allow aws-import script to run on Python 3.6
Signed-off-by: Michael Brown <[email protected]>
1 parent f58b510 commit 7099539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/cloud/aws-import

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ BLOCKSIZE = 512 * 1024
1616
def detect_architecture(image):
1717
"""Detect CPU architecture"""
1818
mdir = subprocess.run(['mdir', '-b', '-i', image, '::/EFI/BOOT'],
19-
capture_output=True)
19+
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
2020
if any(b'BOOTAA64.EFI' in x for x in mdir.stdout.splitlines()):
2121
return 'arm64'
2222
return 'x86_64'

0 commit comments

Comments
 (0)