Example #1
0
 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])
Example #2
0
 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])