(self, imagerepo, def_imagerepo=None)
return imagerepo
Check image repository syntax
Check image repository syntax
Check image repository syntax
def _check_imagerepo(self, imagerepo, def_imagerepo=None):
        """Check image repository syntax"""
        if (not imagerepo) and def_imagerepo:
            imagerepo = def_imagerepo

        if not (imagerepo and
                self.dockerioapi.is_repo_name(imagerepo)):
            Msg().err("Error: enter image or repository/image without tag")
            return None

        return imagerepo
def _check_imagerepo ( self , imagerepo , def_imagerepo = None ) : if ( not imagerepo ) and def_imagerepo : imagerepo = def_imagerepo if not ( imagerepo and self . dockerioapi . is_repo_name ( imagerepo ) ) : Msg ( ) . err ( "Error: enter image or repository/image without tag" ) return None return imagerepo