Skip to content
Snippets Groups Projects
Commit 87755a31 authored by Moul's avatar Moul
Browse files

[fix] #170: Missing f-string for ESUserEndpoint regex

parent e1a6c1d0
No related branches found
No related tags found
No related merge requests found
Pipeline #13174 passed
......@@ -456,7 +456,7 @@ ESUserEndpointType = TypeVar("ESUserEndpointType", bound="ESUserEndpoint")
class ESUserEndpoint(Endpoint):
API = "ES_USER_API"
re_inline = re.compile(
"^{API} (?P<host>(?:{const.HOST_REGEX})|(?:{const.IPV4_REGEX})) (?P<port>{const.PORT_REGEX})$"
f"^{API} (?P<host>(?:{const.HOST_REGEX})|(?:{const.IPV4_REGEX})) (?P<port>{const.PORT_REGEX})$"
)
def __init__(self, host: str, port: int) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment