From 11cd7db873b8b9c09baa7df21fb4eefe7147ef97 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Tue, 30 Jul 2019 08:13:35 -0700 Subject: [PATCH] Protect against badly-authored installs arrays when checking if blocking applications are running. --- code/client/munkilib/processes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/munkilib/processes.py b/code/client/munkilib/processes.py index 2a94721f..7a9ba91b 100644 --- a/code/client/munkilib/processes.py +++ b/code/client/munkilib/processes.py @@ -106,7 +106,7 @@ def blocking_applications_running(pkginfoitem): # from 'installs' list if it exists appnames = [os.path.basename(item.get('path')) for item in pkginfoitem.get('installs', []) - if item['type'] == 'application'] + if item.get('type') == 'application'] display.display_debug1("Checking for %s" % appnames) running_apps = [appname for appname in appnames