PixarAnimationStudios / ruby-jss

ruby-jss provides native ruby access to the REST APIs of Jamf Pro, an enterprise/education tool for managing Apple devices, from jamf.com. The Jamf module provides access to both APIs. Jamf Pro objects are implemented as classes and interact with each other. Authentication tokens, data format and other details are handled under the hood to allow simpler, intuitive automation of Jamf-related tasks.
http://pixaranimationstudios.github.io/jss-api-gem/index.html
Other
99 stars 28 forks source link

[BUG] - JSS::Script.category nil, when category is set #29

Closed cybertunnel closed 5 years ago

cybertunnel commented 5 years ago

When using JSS::Script.category, it returns nil instead of the category name.

Example:

script = JSS::Script.fetch name: 'Test script'
category = script.category # sets to nil
puts category

category = script.category_name #sets to the actual name
puts category

This is a bug from the change over to Categorizable, and category was left behind. - use category_name instead.

glenfarclas17 commented 5 years ago

Just cleaning up, this was fixed in 8e415f0e