Skip to content

Commit 77d7fbb

Browse files
committed
makecatalogs plugin-level support. additional changes for python 2 support.
1 parent 40895aa commit 77d7fbb

3 files changed

Lines changed: 18 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## [1.1.3] - 2020-08-18
4+
5+
### Added
6+
7+
- Support for plugin-driven makecatalogs
8+
9+
### Fixed
10+
11+
- Switched to Python 2-compatible super() instantiation for URLGetter class
12+
313
## [1.1.2] - 2020-08-13
414

515
### Fixed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ SimpleMDM does not support the concept of Munki catalogs in the traditional sens
5454
1. Create a new Munki managed assignment group if one does not already exist.
5555
1. Assign the newly uploaded app to the assignment group.
5656

57-
### Do not use makecatalogs
57+
### Using Makecatalogs
5858

59-
SimpleMDM utilizes a proprietary backend for munki asset storage. Such being the case, catalog generation is handled automatically and does not need to be invoked with the `makecatalogs` utility or with `MakeCatalogs.munki`. Running either of these will result in an error.
59+
SimpleMDM utilizes a proprietary backend for munki asset storage. Such being the case, catalog generation is handled automatically and does not need to be invoked with the `makecatalogs` utility or with `MakeCatalogs.munki`. Munki version 5.1 (yet to be released as of 8/18/20) will automatically detect this and running m`makecatalogs` or `MakeCatalogs.munki` will result in no action being taken. If using an earlier version of Munki, running either of these utilities will result in an error.

SimpleMDMRepo.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# encoding: utf-8
22

33
# SimpleMDMRepo.py
4-
# Version 1.1.2
4+
# Version 1.1.3
55

66
from __future__ import absolute_import, print_function
77

@@ -14,8 +14,6 @@
1414
import re
1515
import sys
1616

17-
import sys
18-
1917
try:
2018
from urllib2 import quote
2119
except ImportError:
@@ -150,6 +148,9 @@ def put_from_local_file(self, resource_identifier, local_file_path):
150148
def delete(self, resource_identifier):
151149
raise ProcessorError("This action is not supported by SimpleMDM")
152150

151+
def makecatalogs(self, options, output_fn=None):
152+
return []
153+
153154
# Borrowed/adapted from AutoPkg, to eliminate AutoPkg lib dependency
154155

155156
def log_err(msg):
@@ -165,7 +166,7 @@ class ProcessorError(Exception):
165166

166167
pass
167168

168-
class Processor:
169+
class Processor(object):
169170
"""Processor base class.
170171
171172
Processors accept a property list as input, process its contents, and
@@ -295,7 +296,7 @@ class URLGetter(Processor):
295296
description = __doc__
296297

297298
def __init__(self, env=None, infile=None, outfile=None):
298-
super().__init__(env, infile, outfile)
299+
super(URLGetter, self).__init__(env, infile, outfile)
299300
if not self.env:
300301
self.env = {}
301302

0 commit comments

Comments
 (0)