修正:普通运维人员无法进行telnet远程连接。

pull/105/head
Apex Liu 2018-05-09 21:28:46 +08:00
parent f197d85567
commit 7d56d74ae4
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ from app.base.utils import AttrDict, tp_timestamp_utc_now
def get_by_id(pid): def get_by_id(pid):
s = SQL(get_db()) s = SQL(get_db())
s.select_from('ops_policy', ['id', 'name', 'desc', 'flag_record', 'flag_rdp', 'flag_ssh'], alt_name='p') s.select_from('ops_policy', ['id', 'name', 'desc', 'flag_record', 'flag_rdp', 'flag_ssh', 'flag_telnet'], alt_name='p')
s.where('p.id={}'.format(pid)) s.where('p.id={}'.format(pid))
err = s.query() err = s.query()
if err != TPE_OK: if err != TPE_OK: