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.
When setting a os_requirement to nil, it throws the below error.
7: from .ci/resources/printers.rb:42:in `<main>'
6: from /tmp/build/69f2a37b/code/.ci/resources/sync.rb:71:in `start'
5: from /tmp/build/69f2a37b/code/.ci/resources/sync.rb:71:in `each'
4: from /tmp/build/69f2a37b/code/.ci/resources/sync.rb:118:in `block in start'
3: from /tmp/build/69f2a37b/code/.ci/resources/sync.rb:226:in `update_object'
2: from /tmp/build/69f2a37b/code/.ci/resources/sync.rb:119:in `block (2 levels) in start'
1: from .ci/resources/printers.rb:56:in `block in <main>'
/usr/local/bundle/gems/ruby-jss-1.3.3/lib/jss/api_object/printer.rb:389:in `os_requirements=': os_requirements must be a string. (JSS::InvalidDataError)
When setting a os_requirement to nil, it throws the below error.