jssimporter / jss_helper

jss_helper is deprecated.
GNU General Public License v3.0
66 stars 7 forks source link

Error with site enabled computer. #11

Open Chalcahuite opened 9 years ago

Chalcahuite commented 9 years ago

I may be one of the few people using sites, and jss_helper borks on promoting a package in a policy because a Mac is enabled for a site, I presume. Even though most of my population should be assigned to a site, and other policies process OK. Here's the traceback I got today.

Traceback (most recent call last): File "/usr/local/bin/jss_helper", line 107, in main() File "/usr/local/bin/jss_helper", line 100, in main args.func(args) File "/usr/local/bin/jss_helper_lib/actions.py", line 571, in promote policy.save() File "/Library/Python/2.7/site-packages/jss/jss.py", line 1772, in save super(Policy, self).save() File "/Library/Python/2.7/site-packages/jss/jss.py", line 696, in save raise JSSPutError(put_error) jss.exceptions.JSSPutError: Response Code: 409 Response: Conflict. Error: Computer (ID:2795, Name:HQSMD-144605) is enabled for a site.