Commit c359d1e2 authored by kelianchun_miller's avatar kelianchun_miller

update connect.py

parent 0c42d039
......@@ -96,7 +96,7 @@ class Tty(object):
return False
@staticmethod
def deal_command(str_r, ssh):
def deal_command(str_r):
"""
处理命令中特殊字符
"""
......@@ -384,11 +384,11 @@ class SshTty(Tty):
match = pattern.search(chan_str)
if match:
VIM_FLAG = False
data = self.deal_command(data, self.ssh)
data = self.deal_command(data)
if len(data) > 0:
TtyLog(log=log, datetime=datetime.datetime.now(), cmd=data).save()
else:
data = self.deal_command(data, self.ssh)
data = self.deal_command(data)
if len(data) > 0:
TtyLog(log=log, datetime=datetime.datetime.now(), cmd=data).save()
data = ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment