From 70995397e5bdfd3431e12971aa40630c7014785f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 6 Apr 2022 14:36:07 +0100 Subject: [cloud] Allow aws-import script to run on Python 3.6 Signed-off-by: Michael Brown --- contrib/cloud/aws-import | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') 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' -- cgit v1.1