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 28 forks source link

Printers inside Policy have an empty [""] #58

Closed cybertunnel closed 4 years ago

cybertunnel commented 4 years ago

When using the #printers method in JSS::Policy object, it returns [""] if no printers are associated with that policy. If there is a printer, returns the printer and the "". Example:

[
  "",
  {
    :id=>87, 
    :name=>"Testing Printer Script Creation",
    :action=>"install"
    :make_default=>false
  }
]

When I expected:

[
  {
    :id=>87, 
    :name=>"Testing Printer Script Creation",
    :action=>"install"
    :make_default=>false
  }
]