Commit 08f5aa05 authored by 金凯强's avatar 金凯强 🎨

测试端口,传入空数据,返回为空

parent b2f94d03
...@@ -184,10 +184,12 @@ where B.default_version=1''' ...@@ -184,10 +184,12 @@ where B.default_version=1'''
:param json_data: :param json_data:
:return: :return:
''' '''
if not json_data:
return []
# 受黄总压迫,这里要排序一下 # 受黄总压迫,这里要排序一下
project_info = ConnectionService().get_project_info(project_no) project_info = ConnectionService().get_project_info(project_no)
host_ip = project_info['host_ip'] host_ip = project_info['host_ip']
info_list = []
info_list_success = [] info_list_success = []
info_list_fail = [] info_list_fail = []
for port_info in json_data: for port_info in json_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