Skip to content

Commit

Permalink
update_asset_tags.py: renamed jamf to python_jamf
Browse files Browse the repository at this point in the history
  • Loading branch information
James Reynolds committed Jan 29, 2024
1 parent 2e3aefe commit 78c5c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jctl/update_asset_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
import csv
import logging

import jamf
import python_jamf

# create inventory lookup for each asset tag by serial number
with open("asset_inventory.csv", "r") as f:
inventory = {r["SERIAL_NUMBER"]: r["ASSET_TAG"] for r in csv.DictReader(f)}

# iterate all Jamf computer records
for computer in jamf.Computers():
for computer in python_jamf.Computers():
# get serial number from Jamf computer record
serial_number = computer.data["general"]["serial_number"]
try:
Expand Down

0 comments on commit 78c5c4e

Please sign in to comment.