(self, node_id: int, ssh_conf: dict, ssh_test: int=0)
| 259 | return "" |
| 260 | |
| 261 | def set_node_ssh_conf(self, node_id: int, ssh_conf: dict, ssh_test: int=0): |
| 262 | pdata = {"ssh_conf": json.dumps(ssh_conf)} |
| 263 | if ssh_test: |
| 264 | pdata["ssh_test"] = 1 |
| 265 | self.db.table('node').where('id=?', (node_id,)).update(pdata) |
| 266 | return |
| 267 | |
| 268 | def remove_node_ssh_conf(self, node_id: int): |
| 269 | self.db.table('node').where('id=?', (node_id,)).update({"ssh_conf": "{}"}) |
no test coverage detected