diff --git a/changelog/68755.fixed.md b/changelog/68755.fixed.md new file mode 100644 index 000000000000..be6a5677bc61 --- /dev/null +++ b/changelog/68755.fixed.md @@ -0,0 +1 @@ +Fix salt.utils conflicting with standard library when using salt-ssh diff --git a/salt/config/__init__.py b/salt/config/__init__.py index 1a5068328e86..24ca6fec7cc6 100644 --- a/salt/config/__init__.py +++ b/salt/config/__init__.py @@ -2309,7 +2309,7 @@ def insert_system_path(opts, paths): path_options = {"path": path, "root_dir": opts["root_dir"]} prepend_root_dir(path_options, path_options) if os.path.isdir(path_options["path"]) and path_options["path"] not in sys.path: - sys.path.insert(0, path_options["path"]) + sys.path.append(path_options["path"]) def minion_config(