Skip to content

Commit

Permalink
vmupdate: load plugins in sorted order
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marmarek committed Feb 10, 2025
1 parent ae918ec commit 88dffc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmupdate/agent/source/plugins/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import importlib
import os.path
import glob
modules = glob.glob(os.path.join(os.path.dirname(__file__), "*.py"))
modules = sorted(glob.glob(os.path.join(os.path.dirname(__file__), "*.py")))
__all__ = [os.path.basename(f)[:-3]
for f in modules if os.path.isfile(f)
and not f.endswith('__init__.py')]
Expand Down

0 comments on commit 88dffc6

Please sign in to comment.