Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Limmen committed Aug 9, 2023
1 parent e9c937f commit acb1444
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def list_docker_networks() -> Tuple[List[str], List[int]]:
networks_list: List[List[str]] = list(map(lambda x: x.split(), networks))
networks_list = list(filter(lambda x: len(x) > 1, networks_list))
networks_ids_str: List[str] = list(map(lambda x: x[1], networks_list))
networks_ids_str = list(filter(lambda x: re.match(r"{}\d".format(constants.CSLE.CSLE_NETWORK_PREFIX),
x), networks_ids_str))
networks_ids_str = list(filter(lambda x: re.match(
r"{}\d".format(constants.CSLE.CSLE_NETWORK_PREFIX), x), networks_ids_str))
network_ids: List[int] = list(map(lambda x: int(x.replace(constants.CSLE.CSLE_NETWORK_PREFIX, "")),
networks_ids_str))
return networks_ids_str, network_ids
Expand Down

0 comments on commit acb1444

Please sign in to comment.