Skip to content

Commit

Permalink
fixed minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dante Acosta committed Jul 1, 2024
1 parent 22f2593 commit 68ed286
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ def description_maker(machine):
continue
# converts '7CDB98C877F1' into '7C:DB:98:C8:77:F1' for better readability
mac = (
# fmt: off
(":".join(ip["macAddress"][i:i+2] for i in range(0, len(ip["macAddress"]), 2)))
# fmt: on
if ip["macAddress"] is not None
else "N/A"
)

ips += f" IP: {ip['ipAddress']}\n MAC: {mac}\n\n"

last_seen = dt_ms_patch(machine["lastSeen"]).strftime("%d/%m/%Y at %H:%M:%S UTC")
Expand Down

0 comments on commit 68ed286

Please sign in to comment.