fix polyaxon's polyaxonfile config parser
this eliminates the assumption that a docker image
string can only have 1 colon in it, i.e. where
the registry you're pulling from is accessed by
a port number. we should only split the string by
the rightmost colon.
fix for
@@ -17,7 +17,7 @@ from polyaxon_schemas.base import BaseConfig
def validate_image(image):
if not image:
raise ValidationError('Invalid docker image `{}`'.format(image))
- tagged_image = image.split(':')
+ tagged_image = image.rsplit(':', 1)
if len(tagged_image) > 2:
raise ValidationError('Invalid docker image `{}`'.format(image))
