From 344c92c4d2e46d5adbfa385e4516322df86406e3 Mon Sep 17 00:00:00 2001 From: cdietrich Date: Wed, 2 Mar 2022 15:39:20 +0100 Subject: [PATCH] fix endpoint regex --- pyinfra/storage/clients/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyinfra/storage/clients/s3.py b/pyinfra/storage/clients/s3.py index c0e6bc3..19ee87e 100644 --- a/pyinfra/storage/clients/s3.py +++ b/pyinfra/storage/clients/s3.py @@ -9,7 +9,7 @@ from pyinfra.exceptions import InvalidEndpoint def parse_endpoint(endpoint): # FIXME Greedy matching (.+) since we get random storage names on kubernetes (eg http://red-research-headless:9000) - endpoint_pattern = r"(?Phttps?)://(?P
(?:(?:(?:\d{1,3}\.){3}\d{1,3})|.+)(?:\:\d+)?)" + endpoint_pattern = r"(?Phttps?)*(?:://)*(?P
(?:(?:(?:\d{1,3}\.){3}\d{1,3})|.+)(?:\:\d+)?)" match = re.match(endpoint_pattern, endpoint)