Error if Policy and Policy group is not in template...
everetteallen opened this issue · 4 comments
I need to upload just packages and put them in Package categories only.
However when I remove the Policy and Policy group info from the Recipe Template.xml I get this error:
leeta:JSSRecipeCreator-0.1.0 ega$ ./JSSRecipeCreator.py /Users/ega/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/MSOffice2011Updates/MSOffice2011Updates.pkg.recipe
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_convenience.py", line 659, in container_unwrap
raise exc_type(*exc_args)
KeyError: 'POLICY_CATEGORY'
It was my impression these could be skipped or left out. Or did I confuse this with a dev version to come?
Here is my RecipeTemplate.xlm
?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string></string>
<key>Identifier</key>
<string></string>
<key>Input</key>
<dict>
<key>NAME</key>
<string></string>
<key>CATEGORY</key>
<string>aaUNC-System-Test</string>
<key>DESCRIPTION</key>
<string>Everette_Allen@ncsu.edu Default AutoPKG install PKG.</string>
</dict>
<key>MinimumVersion</key>
<string></string>
<key>ParentRecipe</key>
<string></string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>prod_name</key>
<string>UNCWide-AutoPKG-%NAME%</string>
<key>category</key>
<string>%CATEGORY%</string>
</dict>
<key>Processor</key>
<string>JSSImporter</string>
</dict>
</array>
</dict>
</plist>
I don't think I planned for this. I'll have to go through and write in handling for empty values to be left out I think.
k thanks. I did try hacking out the parts of the script but did not get get thru it before I got pulled away.
@everetteallen Done. Take a look and let me know how it goes.
So this error is gone. Thanks!