Skip to content

Commit

Permalink
feat: add serial number to linux/ma#1683
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Jan 27, 2024
1 parent ff0d1f7 commit cf55838
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/tacticalrmm/agents/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,10 @@ def physical_disks(self) -> Sequence[Disk]:
@property
def serial_number(self) -> str:
if self.is_posix:
return ""
try:
return self.wmi_detail["serialnumber"]
except:
return ""

try:
return self.wmi_detail["bios"][0][0]["SerialNumber"]
Expand Down

0 comments on commit cf55838

Please sign in to comment.