mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-30 07:40:12 +03:00
fix(typing): resolve mypy errors in agent.gns3_copilot.tools_v2.packet_analysis_tool
This commit is contained in:
parent
0c9f6aa9e3
commit
67f68c9676
@ -143,7 +143,8 @@ class PacketAnalysisTool(BaseTool):
|
||||
stderr=subprocess.DEVNULL,
|
||||
text=True,
|
||||
)
|
||||
tshark.stdout.close()
|
||||
if tshark.stdout is not None:
|
||||
tshark.stdout.close()
|
||||
stdout, _ = grep.communicate(timeout=30)
|
||||
tshark.wait(timeout=5)
|
||||
except Exception as e:
|
||||
|
||||
@ -310,7 +310,6 @@ module = [
|
||||
"gns3server.agent.gns3_copilot.tools_v2.gns3_start_node", # 3
|
||||
"gns3server.agent.gns3_copilot.tools_v2.gns3_stop_node", # 3
|
||||
"gns3server.agent.gns3_copilot.tools_v2.gns3_suspend_node", # 3
|
||||
"gns3server.agent.gns3_copilot.tools_v2.packet_analysis_tool", # 1
|
||||
"gns3server.agent.gns3_copilot.tools_v2.vpcs_tools_netmiko", # 9
|
||||
"gns3server.agent.gns3_copilot.utils.custom_netmiko.scripts.list_netmiko_telnet_devices", # 1
|
||||
"gns3server.agent.gns3_copilot.utils.message_converters", # 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user