Skip to content

Commit

Permalink
Minor code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Jan 31, 2024
1 parent c7faecb commit ae652e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions salt/loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,10 @@ def _module_dirs(
if os.path.isdir(maybe_dir):
cli_module_dirs.insert(0, maybe_dir)

if opts.get("features", {}).get(
"enable_deprecated_module_search_path_priority", False
):
if opts["features"].get("enable_deprecated_module_search_path_priority", False):
salt.utils.versions.warn_until(
3008,
"The old module search path priority will be removed in Salt 3008. "
"The old module search path priority will be removed in Salt {version}. "
"For more information see https://github.com/saltstack/salt/pull/65938.",
)
return cli_module_dirs + ext_type_types + ext_types + sys_types
Expand Down

0 comments on commit ae652e8

Please sign in to comment.