(self, imagerepo)
return (transport, hostname, image, tag)
Split image repo into hostname, repo, tag
Split image repo into hostname, repo, tag
Split image repo into hostname repo tag
def _split_imagespec(self, imagerepo):
        """Split image repo into hostname, repo, tag"""
        if not imagerepo:
            return ("", "", "", "")
        transport = ""
        hostname = ""
        image = imagerepo
        tag = ""
        try:
            if "://" in imagerepo:
                (transport, dummy, hostname, image) = imagerepo.split('/', 4)
            elif '/' in imagerepo:
                (hostname, image) = imagerepo.split('/', 1)
        except (ValueError, IndexError, TypeError):
            pass
        if hostname and '.' not in hostname:
            image = hostname + '/' + image
            hostname = ""
        if ':' in image:
            (image, tag) = image.split(':', 1)
        return (transport, hostname, image, tag)
def _split_imagespec ( self , imagerepo ) : if not imagerepo : return ( "" , "" , "" , "" ) transport = "" hostname = "" image = imagerepo tag = "" try : if "://" in imagerepo : ( transport , dummy , hostname , image ) = imagerepo . split ( '/' , 4 ) elif '/' in imagerepo : ( hostname , image ) = imagerepo . split ( '/' , 1 ) except ( ValueError , IndexError , TypeError ) : pass if hostname and '.' not in hostname : image = hostname + '/' + image hostname = "" if ':' in image : ( image , tag ) = image . split ( ':' , 1 ) return ( transport , hostname , image , tag )