grahampugh / jamf-upload

Scripts for uploading packages to Jamf Cloud
Apache License 2.0
149 stars 37 forks source link

Allows changing of 'inventory_display' field #93

Closed jonesiscoding closed 1 year ago

jonesiscoding commented 1 year ago

There are some extension attributes which make sense to be in a specific inventory display section, for example a Last User EA being placed in the User and Location section, etc.

This PR allows for specifying the inventory_display field of an Extension Attribute upload via an ea_inventory_display argument. The default value of the argument is the previously hardcoded value Extension Attributes.

No validation has been done on the value, as this allows for changes by Jamf (to the inventory display section names) without breaking the script.

grahampugh commented 1 year ago

Good idea, and makes sense. Will merge. I'm not sure when I'll get this copied over to autopkg/grahampugh-recipes yet.