src/hivemined/image.py
def exists(self):
        """Return True if the image referenced by this object exists, False otherwise."""
        if not self.name:
            return False
        images = self.list()
        if images:
            if not self.tag:
                return True
            else:
                for i in images:
                    if next((True for t in i.get('RepoTags') if t == self.tag), False):
                        return True
                # next((True for i in images[0].get('RepoTags') if i == self.tag), False)
        return False
Return True if the image referenced by this object exists, False otherwise.
Return True if the image referenced by this object exists, False otherwise.
Return True if the image referenced by this object exists False otherwise .
def exists(self):
        if not self.name:
            return False
        images = self.list()
        if images:
            if not self.tag:
                return True
            else:
                for i in images:
                    if next((True for t in i.get('RepoTags') if t == self.tag), False):
                        return True
        return False
def exists ( self ) : if not self . name : return False images = self . list ( ) if images : if not self . tag : return True else : for i in images : if next ( ( True for t in i . get ( 'RepoTags' ) if t == self . tag ) , False ) : return True return False
Return True if the image referenced by this object exists, False otherwise.
Return True if the image referenced by this object exists False otherwise .
"""Return True if the image referenced by this object exists, False otherwise.""" # next((True for i in images[0].get('RepoTags') if i == self.tag), False)
self