(self, endpoint, image_id)
Get the ancestry which is an ordered list of layers
Get the ancestry which is an ordered list of layers
Get the ancestry which is an ordered list of layers
def get_v1_image_ancestry(self, endpoint, image_id):
        """Get the ancestry which is an ordered list of layers"""
        url = endpoint + "/v1/images/" + image_id + "/ancestry"
        Msg().out("Info: ancestry url", url, l=Msg.DBG)
        (hdr, buf) = self._get_url(url)
        try:
            return (hdr.data, json.loads(buf.getvalue()))
        except (IOError, OSError, AttributeError, ValueError, TypeError):
            return (hdr.data, [])
def get_v1_image_ancestry ( self , endpoint , image_id ) : url = endpoint + "/v1/images/" + image_id + "/ancestry" Msg ( ) . out ( "Info: ancestry url" , url , l = Msg . DBG ) ( hdr , buf ) = self . _get_url ( url ) try : return ( hdr . data , json . loads ( buf . getvalue ( ) ) ) except ( IOError , OSError , AttributeError , ValueError , TypeError ) : return ( hdr . data , [ ] )