コード例 #1
0
ファイル: node.py プロジェクト: xiaozhiqi2016/docker_web
 def get(self, *args, **kargs):
     con_dict = {}
     for key in ['node_ip', 'port', 'con_id']:
         con_dict[key] = self.get_argument(key)
     myswarm = Myswarm()
     myswarm.destroy_container(con_dict['node_ip'], con_dict['port'],
                               con_dict['con_id'])
コード例 #2
0
 def get(self, *args, **kargs):
     con_dict = {}
     for key in ['node_ip', 'port', 'con_id']:
         con_dict[key] = self.get_argument(key)
     myswarm = Myswarm()
     myswarm.destroy_container(con_dict['node_ip'], con_dict['port'],
                               con_dict['con_id'])
     self.redirect("/contlist?active=3&get_all_node=True")