Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, the `salt.utils.url.create()` method naively assumed the compiled URL provided by `urllib.parse.urlunparse()` always starts with the literal string `file:///`, that is, the begininning of the URL string starting with the `scheme` and including an empty `authority` section. Beginning with [python-3.12](python/cpython@0edfc66), however, generating a URL with `urlunparse()` results in the syntax `file:` for the portion of the URL including the `scheme` and `authority` sections. Since `urlunparse()` accepts the arbitrary scheme `salt`, use it instead and then normalize the rendered scheme to `salt://` as SaltStack expects.
- Loading branch information