(self)
Returns True if the considered container has already been created.
Returns True if the considered container has already been created.
Returns True if the considered container has already been created .
def exists(self):
        """ Returns True if the considered container has already been created. """
        try:
            self.client.containers.get(self.lxd_name)
        except NotFound:
            return False
        else:
            return True
def exists ( self ) : try : self . client . containers . get ( self . lxd_name ) except NotFound : return False else : return True