Skip to content

Commit

Permalink
Include warranty in devicesExport to audit formatted JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed May 15, 2024
1 parent 51bc065 commit 3926333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controllers/Collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ public function read($id, string $export = '')
$this->resp->dictionary = $dictionary;
if ($this->resp->meta->format === 'json_data') {
// Special case device as an audit result
$components_array = array('bios', 'certificate', 'disk', 'dns', 'executable', 'file', 'ip', 'log', 'memory', 'module', 'monitor', 'motherboard', 'netstat', 'network', 'nmap', 'optical', 'pagefile', 'partition', 'policy', 'print_queue', 'processor', 'radio', 'route', 'san', 'scsi', 'server', 'server_item', 'service', 'share', 'software', 'software_key', 'sound', 'task', 'usb', 'user', 'user_group', 'variable', 'video', 'vm', 'windows');
$components_array = array('bios', 'certificate', 'disk', 'dns', 'executable', 'file', 'ip', 'log', 'memory', 'module', 'monitor', 'motherboard', 'netstat', 'network', 'nmap', 'optical', 'pagefile', 'partition', 'policy', 'print_queue', 'processor', 'radio', 'route', 'san', 'scsi', 'server', 'server_item', 'service', 'share', 'software', 'software_key', 'sound', 'task', 'usb', 'user', 'user_group', 'variable', 'video', 'vm', 'warranty', 'windows');
unset($this->resp->data[0]->attributes->id);
unset($this->resp->data[0]->attributes->first_seen);
unset($this->resp->data[0]->attributes->last_seen);
Expand Down

0 comments on commit 3926333

Please sign in to comment.