Skip to content

0.8.3

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Jan 06:34
  • Moved keyring code out of api.py to config.py.
  • Improved error handling, exits, and printing to STDERR.
  • Created exceptions.py.
  • Moved all errors to exceptions.py.
  • Created more nuanced exceptions like NotFound.
  • Improved session management.
  • Removed api.py code that wasn't doing anything.
  • Applied a little bit of dry to api.py.
  • Encode xml data as utf-8 before sending it to Jamf.
  • Simplified config.py and setconfig.py by breaking up long methods into multiple methods.
  • Created revoke_token .
  • Fixed code with null names.
  • Cast record id to int if it's a str.
  • Added recordsWithName.
  • Deprecated recordWithName because Jamf doesn't enforce unique names. recordWithName returns the first item returned by recordsWithName.
  • Removed api_mock_test.py and created api_test.py, which runs against a real jamf server.
  • Removed/renamed test_config.py to config_test.py and completely rewrote it.
  • Removed test_records.py (it's a work in progress)

Known issues

  • Creating a new record needs a little work. It needs to get the record right after posting it because the data isn't correct.
  • Discovered it's possible to create bad records that can not be deleted and doesn't show up in the GUI.