diff --git a/code/client/munkilib/installer.py b/code/client/munkilib/installer.py index 4d042b43..a39e7536 100644 --- a/code/client/munkilib/installer.py +++ b/code/client/munkilib/installer.py @@ -23,7 +23,7 @@ munki module to automatically install pkgs, mpkgs, and dmgs import datetime import os import pwd -#import signal +import random import subprocess import time import stat @@ -632,6 +632,7 @@ def installWithInfo( restartflag = False itemindex = 0 skipped_installs = [] + random.shuffle(installlist) for item in installlist: # Keep track of when this particular install started. utc_now = datetime.datetime.utcnow() @@ -936,6 +937,7 @@ def processRemovals(removallist, only_unattended=False): restartFlag = False index = 0 skipped_removals = [] + random.shuffle(removallist) for item in removallist: if only_unattended: if not item.get('unattended_uninstall'):