mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
syntax
This commit is contained in:
parent
92b0bd8f8f
commit
9a53656ebf
@ -109,7 +109,9 @@ def get_bridge_id():
|
|||||||
"""Gets the local system DeviceID for T2 Macs"""
|
"""Gets the local system DeviceID for T2 Macs"""
|
||||||
remotectl_cmd = ["/usr/libexec/remotectl", "get-property", "localbridge", "HWModel"]
|
remotectl_cmd = ["/usr/libexec/remotectl", "get-property", "localbridge", "HWModel"]
|
||||||
try:
|
try:
|
||||||
remotectl_output = subprocess.check_output(remotectl_cmd, , stderr=subprocess.STDOUT)
|
remotectl_output = subprocess.check_output(
|
||||||
|
remotectl_cmd, stderr=subprocess.STDOUT
|
||||||
|
)
|
||||||
bridge_id = remotectl_output.decode("utf8").split(" ")[-1].split("\n")[0]
|
bridge_id = remotectl_output.decode("utf8").split(" ")[-1].split("\n")[0]
|
||||||
except subprocess.CalledProcessError as err:
|
except subprocess.CalledProcessError as err:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user