def _get_repo_tag(image, default_tag='latest'):
 if (':' in image):
  (r_name, r_tag) = image.rsplit(':', 1)
  if (not r_tag):
   log.warning("Assuming tag '{0}' for repo '{1}'".format(default_tag, image))
   r_tag = default_tag
 else:
  r_name = image
  r_tag = default_tag
 return (r_name, r_tag)

def _get_repo_tag ( image , default_tag = 'latest' ) : if ( ':' in image ) : ( r_name , r_tag ) = image . rsplit ( ':' , 1 ) if ( not r_tag ) : log . warning ( "Assuming tag '{0}' for repo '{1}'" . format ( default_tag , image ) ) r_tag = default_tag else : r_name = image r_tag = default_tag return ( r_name , r_tag )
resolves the docker repo:tag notation and returns repo name and tag .