mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
Fix for board-id retrieval on VM (#6)
This commit is contained in:
parent
1bfd0c71b7
commit
9e35978b72
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user