mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use first part of url for replica set urls
This commit is contained in:
parent
432c9f8f15
commit
d83989c9b3
1 changed files with 5 additions and 0 deletions
|
|
@ -23,6 +23,11 @@ def _decompose_url(url):
|
|||
connection directly this is just a dumb components for MongoHandler
|
||||
validation pass.
|
||||
"""
|
||||
# Use first url from passed url
|
||||
# - this is beacuse it is possible to pass multiple urls for multiple
|
||||
# replica sets which would crash on urlparse otherwise
|
||||
# - please don't use comma in username of password
|
||||
url = url.split(",")[0]
|
||||
components = {
|
||||
"scheme": None,
|
||||
"host": None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue