Commit 9a769ea8 authored by 金凯强's avatar 金凯强 🎨

只赋值code有值的数据

parent fedf74c7
Pipeline #22307 failed with stage
in 11 seconds
...@@ -578,7 +578,9 @@ docker-compose -f /data/upgrade_tools_data/backup/{upgrade_no}/docker-compose.ym ...@@ -578,7 +578,9 @@ docker-compose -f /data/upgrade_tools_data/backup/{upgrade_no}/docker-compose.ym
result_dict['local_name'] = '' result_dict['local_name'] = ''
result_dict['local_tag'] = '' result_dict['local_tag'] = ''
result_list.append(result_dict) # 只赋值code有值的数据
if result_dict.get('code'):
result_list.append(result_dict)
for filter_app in filter_app_list: for filter_app in filter_app_list:
result_dict = {} result_dict = {}
...@@ -600,10 +602,9 @@ docker-compose -f /data/upgrade_tools_data/backup/{upgrade_no}/docker-compose.ym ...@@ -600,10 +602,9 @@ docker-compose -f /data/upgrade_tools_data/backup/{upgrade_no}/docker-compose.ym
result_dict['local_tag'] = filter_app_tag result_dict['local_tag'] = filter_app_tag
result_dict['code'] = filter_app_code result_dict['code'] = filter_app_code
if result_dict: # 只赋值code有值的数据
if result_dict and result_dict.get('code'):
result_list.append(result_dict) result_list.append(result_dict)
print(result_list)
return result_list return result_list
def convert_image_info_str_to_list(self, image_info_str): def convert_image_info_str_to_list(self, image_info_str):
......
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