From 9e35978b7204e7a64e3d864667daa437be8f1ebf Mon Sep 17 00:00:00 2001 From: Austin Culter Date: Wed, 8 May 2019 13:57:16 -0600 Subject: [PATCH] Fix for board-id retrieval on VM (#6) --- installinstallmacos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installinstallmacos.py b/installinstallmacos.py index 97abf4d..087b922 100755 --- a/installinstallmacos.py +++ b/installinstallmacos.py @@ -60,7 +60,7 @@ def get_board_id(): ioreg_output = subprocess.check_output(ioreg_cmd).splitlines() for line in ioreg_output: if 'board-id' in line: - board_id = line.split(" ")[-1] + board_id = line.split("<")[-1] board_id = board_id[board_id.find('<"')+2:board_id.find('">')] return board_id except subprocess.CalledProcessError, err: