Skip to content

Commit 52b3d94

Browse files
authored
Merge pull request #6 from jc0b/dev
Fix for missing serial number
2 parents 64f23d3 + 8c3177d commit 52b3d94

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

kandji_processor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public function run($plist)
2323
$parser = new CFPropertyList();
2424
$parser->parse($plist, CFPropertyList::FORMAT_XML);
2525
$mylist = $parser->toArray();
26+
27+
$mylist['serial_number'] = $this->serial_number;
2628
// Retrieve Kandji MR record (if existing)
2729
try {
2830
$model = Kandji_model::select()

scripts/kandji.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def get_local_kandji_prefs():
2020
return result
2121

2222
def get_users_info():
23-
2423
# Get all users info as plist
2524
cmd = ['/usr/bin/dscl', '-plist', '.', '-readall', '/Users']
2625
proc = subprocess.Popen(cmd, shell=False, bufsize=-1,

0 commit comments

Comments
 (0)