jssimporter / Spruce

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

Error when trying to remove packages from provided xml #42

Closed smashism closed 5 years ago

smashism commented 5 years ago

Here is the error I see:


JSS: https://JSSServer.com
Preferences used: ~/Library/Preferences/com.github.autopkg.plist
Are you sure you want to continue deleting objects from https://JSSServer.com? (Y or N): y
Traceback (most recent call last):
  File "/Users/autopkg/Downloads/Spruce-master/spruce.py", line 2054, in <module>
    main()
  File "/Users/autopkg/Downloads/Spruce-master/spruce.py", line 2048, in main
    remove(removal_tree)
  File "/Users/autopkg/Downloads/Spruce-master/spruce.py", line 1936, in remove
    except jss.JSSGetError as error:
AttributeError: 'module' object has no attribute 'JSSGetError'```

I have the latest JSSImporter + python-jss and am using the newest release of spruce.
grahampugh commented 5 years ago

Hi @smashism I just pushed a commit that should fix this. jss.JSSGetError changed to jss.GetError in python-jss 2.0.0.

smashism commented 5 years ago

The latest commit fixes this issue.