def delete(self): docker.stop_container(self.name) docker.delete_container(self.name) self.status = "deleted" # update the status in DB # utils.node_t.update({'status': self.status}, doc_ids=[self.docid]) utils.node_t.remove(doc_ids=[self.docid])
def delete(self): docker.stop_container(self.name) docker.delete_container(self.name) self.status = "deleted" # update the status in DB utils.server_t.remove(doc_ids=[self.docid])