Skip to content

Commit 88dffc6

Browse files
committed
vmupdate: load plugins in sorted order
Ensure deterministic load order, but also allow a bit of control over that order. There may be plugin that wants to be loaded before others.
1 parent ae918ec commit 88dffc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vmupdate/agent/source/plugins/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import importlib
22
import os.path
33
import glob
4-
modules = glob.glob(os.path.join(os.path.dirname(__file__), "*.py"))
4+
modules = sorted(glob.glob(os.path.join(os.path.dirname(__file__), "*.py")))
55
__all__ = [os.path.basename(f)[:-3]
66
for f in modules if os.path.isfile(f)
77
and not f.endswith('__init__.py')]

0 commit comments

Comments
 (0)