mirror of
https://github.com/munki/munki.git
synced 2026-01-06 06:29:56 -06:00
Sort the conditionals list so they always run in the same order (#870)
This commit is contained in:
committed by
Greg Neagle
parent
ce5ed7563b
commit
6af274bd61
@@ -674,7 +674,7 @@ def get_conditions():
|
||||
except (OSError, IOError):
|
||||
pass
|
||||
if os.path.exists(conditionalscriptdir):
|
||||
for conditionalscript in osutils.listdir(conditionalscriptdir):
|
||||
for conditionalscript in sorted(osutils.listdir(conditionalscriptdir)):
|
||||
if conditionalscript.startswith('.'):
|
||||
# skip files that start with a period
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user