Fix get_serial()
This commit is contained in:
parent
080383d9a9
commit
7147ef1753
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ class CpuRam(BaseObj):
|
||||||
cmd = (
|
cmd = (
|
||||||
'ioreg -c IOPlatformExpertDevice -d 2'
|
'ioreg -c IOPlatformExpertDevice -d 2'
|
||||||
"| awk '/IOPlatformSerialNumber/ {print $3}'"
|
"| awk '/IOPlatformSerialNumber/ {print $3}'"
|
||||||
'| sed s/"//g'
|
"| sed 's/\"//g'"
|
||||||
)
|
)
|
||||||
proc = run_program(cmd, check=False, shell=True)
|
proc = run_program(cmd, check=False, shell=True)
|
||||||
self.serial = proc.stdout.strip()
|
self.serial = proc.stdout.strip()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue