aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2022-04-06 14:36:07 +0100
committerMichael Brown <mcb30@ipxe.org>2022-04-06 14:36:07 +0100
commit70995397e5bdfd3431e12971aa40630c7014785f (patch)
tree8446b288f718654e1f80acbbb06db47f837bd0ef /contrib
parentf58b5109f46088bdbb5345a9d94b636c54345bdf (diff)
downloadipxe-70995397e5bdfd3431e12971aa40630c7014785f.zip
ipxe-70995397e5bdfd3431e12971aa40630c7014785f.tar.gz
ipxe-70995397e5bdfd3431e12971aa40630c7014785f.tar.bz2
[cloud] Allow aws-import script to run on Python 3.6
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/cloud/aws-import2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cloud/aws-import b/contrib/cloud/aws-import
index eef4302..b9a350f 100755
--- a/contrib/cloud/aws-import
+++ b/contrib/cloud/aws-import
@@ -16,7 +16,7 @@ BLOCKSIZE = 512 * 1024
def detect_architecture(image):
"""Detect CPU architecture"""
mdir = subprocess.run(['mdir', '-b', '-i', image, '::/EFI/BOOT'],
- capture_output=True)
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if any(b'BOOTAA64.EFI' in x for x in mdir.stdout.splitlines()):
return 'arm64'
return 'x86_64'