Skip to content

Commit

Permalink
Fix docker registry parsing for AWS Batch decorator (#62)
Browse files Browse the repository at this point in the history
re.search instead of re.match to disambiguate between valid docker
registry urls
  • Loading branch information
savingoyal authored Dec 16, 2019
1 parent 5e52934 commit 80e4546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metaflow/plugins/aws/batch/batch_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 80e4546

Please sign in to comment.