mirror of
https://github.com/munki/munki.git
synced 2026-04-24 05:49:42 -05:00
Added exception for SelfServeManifest to cleanUpManifests
This commit is contained in:
@@ -2622,12 +2622,20 @@ def cleanUpManifests(subdir=""):
|
||||
manifest_dir = os.path.join(munkicommon.pref('ManagedInstallDir'),
|
||||
'manifests')
|
||||
|
||||
exceptions = [
|
||||
"SelfServeManifest"
|
||||
]
|
||||
|
||||
# For recursive calls (checking subfolders), append subdir to root manifest directory
|
||||
if subdir:
|
||||
manifest_dir = os.path.join(manifest_dir, subdir)
|
||||
|
||||
for item in os.listdir(manifest_dir):
|
||||
cachename = os.path.join(subdir, item)
|
||||
|
||||
if cachename in exceptions:
|
||||
continue
|
||||
|
||||
if cachename not in MANIFESTS.keys():
|
||||
path = os.path.join(manifest_dir, item)
|
||||
if os.path.isdir(path):
|
||||
|
||||
Reference in New Issue
Block a user