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
98 stars 30 forks source link

Computer Group Site Assignment BugFix #66 #72

Open cybertunnel opened 4 years ago

cybertunnel commented 4 years ago

This PR should fix the bug outlined in #66 where the smart group wouldn't properly update and throw a 409.

The changes made:

Details: The Jamf Pro API assumes you want the same computers included in the group if you don't specify the <computers><computer /></computers> section of the XML payload. This is why we get a 409 since one or more computers in the group might not be assigned to the site the group is being moved to.