jssimporter / Spruce

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

Issue with the remove.xm file and command #47

Closed kylejericson closed 4 years ago

kylejericson commented 4 years ago

I get this error trying to run the remove command

administrator@AutoPKG ~ % sudo /usr/bin/python /usr/local/bin/spruce.py --remove /Users/administrator/Desktop/remove2.xml JSS: https://myorg.jamfcloud.com Preferences used: ~/Library/Preferences/com.github.autopkg.plist Are you sure you want to continue deleting objects from https://myorg.jamfcloud.com? (Y or N): Y Traceback (most recent call last): File "/usr/local/bin/spruce.py", line 2249, in main() File "/usr/local/bin/spruce.py", line 2243, in main remove(removal_tree) File "/usr/local/bin/spruce.py", line 2069, in remove if not check_with_user(): File "/usr/local/bin/spruce.py", line 2188, in check_with_user "from %s? (Y or N): " % jss_connection.base_url) File "", line 1, in NameError: name 'Y' is not defined

kylejericson commented 4 years ago

Ran with python3 fixed the issue my bad. /usr/local/autopkg/python