diff --git a/changelog/63060.fixed.md b/changelog/63060.fixed.md new file mode 100644 index 00000000000..e0290447aca --- /dev/null +++ b/changelog/63060.fixed.md @@ -0,0 +1 @@ +file.managed correctly handles file path with '#' diff --git a/tests/pytests/unit/fileclient/test_fileclient.py b/tests/pytests/unit/fileclient/test_fileclient.py index a423e075e0d..0892c6b35f6 100644 --- a/tests/pytests/unit/fileclient/test_fileclient.py +++ b/tests/pytests/unit/fileclient/test_fileclient.py @@ -223,6 +223,8 @@ def test_get_file_client(file_client): with patch("salt.fileclient.RemoteClient", MagicMock(return_value="remote_client")): ret = fileclient.get_file_client(minion_opts) assert "remote_client" == ret + + def test_get_url_with_hash(client_opts): """ Test get_url function with a URL containing a hash character.