Skip to content
Snippets Groups Projects
Commit f161ded5 authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Merge branch 'debug_paas_ci' into 'main'

Python script better port list management

See merge request !58
parents f295b4d2 1283a137
No related branches found
No related tags found
1 merge request!58Python script better port list management
...@@ -419,6 +419,8 @@ def import_dep_info(file_path, endpoints_to_scan): ...@@ -419,6 +419,8 @@ def import_dep_info(file_path, endpoints_to_scan):
if host not in endpoints: if host not in endpoints:
endpoints[host] = {"22"} endpoints[host] = {"22"}
endpoints[host].add(port) endpoints[host].add(port)
for host,ports in endpoints.items():
endpoints[host] = sorted(list(ports))
return endpoints return endpoints
################ MAIN ####################################### ################ MAIN #######################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment