在使用小 para子执行遥控系统的指挥时。 执行时有错误
def execute(self,command):
to_exec = self.transport.open_session()
to_exec.exec_command(command)
stdout.write("
%s" % "Executed")
stdout.flush()
get_connection.execute( sh /etc/botclient/avail_pack.sh )
File "/home/xxx/project/server/ssh_module.py", line 43, in execute
to_exec = self.transport.open_session()
AttributeError: ssh_connection instance has no attribute transport