From 80e45463c4c260c1a95c8df6d05e5aeb44b5d332 Mon Sep 17 00:00:00 2001 From: Savin Date: Mon, 16 Dec 2019 14:27:53 -0800 Subject: [PATCH] Fix docker registry parsing for AWS Batch decorator (#62) re.search instead of re.match to disambiguate between valid docker registry urls --- metaflow/plugins/aws/batch/batch_decorator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metaflow/plugins/aws/batch/batch_decorator.py b/metaflow/plugins/aws/batch/batch_decorator.py index d0d72230db..0db4a450f2 100644 --- a/metaflow/plugins/aws/batch/batch_decorator.py +++ b/metaflow/plugins/aws/batch/batch_decorator.py @@ -198,6 +198,6 @@ def _get_registry(cls, image): groups = pattern.match(image).groups() registry = groups[0] namespace = groups[1] - if not namespace and registry and not re.match(r'[:.]', registry): + if not namespace and registry and not re.search(r'[:.]', registry): return None return registry