Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

actually use variable "catalog_to_parse" #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions moscargo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#set this to the base of your munki repo:
repo_base = '/Users/Shared/repo/'
# ad override the catalog to parse below:
# add override the catalog to parse below:
catalog_to_parse = 'all'

# yup, stolen whole-heartedly from http://stackoverflow.com/a/22878816/743638
Expand All @@ -24,7 +24,7 @@ def key_not_seen(unfiltered_prod_dict):
return key_not_seen

try:
products = plistlib.readPlist(os.path.join(repo_base, 'catalogs/all'))
products = plistlib.readPlist(os.path.join(repo_base, 'catalogs', catalog_to_parse))
prodlist = []
for prod_dict in products:
if not prod_dict.get('installer_type') == 'apple_update_metadata':
Expand Down