jssimporter / Spruce

Spruce is deprecated. Please see the wiki for alternatives.
GNU General Public License v3.0
148 stars 22 forks source link

does not work with SSO enabled #22

Closed mrmte closed 7 years ago

mrmte commented 7 years ago

followed all the guides, used before in the past no issue. OS 10.12.4 beta 5

tim.kimpton$ python /Users/tim.kimpton/Downloads/Spruce-master/spruce.py --packages -o cruftypackages.xml 🌲 Building: Package Report... 🌲 Traceback (most recent call last): File "/Users/tim.kimpton/Downloads/Spruce-master/spruce.py", line 1955, in main() File "/Users/tim.kimpton/Downloads/Spruce-master/spruce.py", line 1951, in main run_reports(args) File "/Users/tim.kimpton/Downloads/Spruce-master/spruce.py", line 1747, in run_reports results.append(func(**args_dict)) File "/Users/tim.kimpton/Downloads/Spruce-master/spruce.py", line 732, in build_packages_report subset=["general", "package_configuration", "packages"]) File "/Library/Python/2.7/site-packages/jss/jssobjectlist.py", line 179, in retrieve_all in self] File "/Library/Python/2.7/site-packages/jss/jssobjectlist.py", line 66, in id return int(self["id"]) File "/Library/Python/2.7/site-packages/jss/jssobjectlist.py", line 38, in getitem return self.store[key] KeyError: 'id'

mrmte commented 7 years ago

Hi still cannot get this working. Please can you help?

mrmte commented 7 years ago

discovered the issue but do not know how to fix it. This does not work if you have sso enabled in your JSS and failover URL does not work :(

mrmte commented 7 years ago

fixed, just created a standard account in the jss and im using that instead now it works :)