diff --git a/client-cli/pvc/cli_lib/network.py b/client-cli/pvc/cli_lib/network.py index 49eea416..e148582b 100644 --- a/client-cli/pvc/cli_lib/network.py +++ b/client-cli/pvc/cli_lib/network.py @@ -961,7 +961,9 @@ def format_list_dhcp(dhcp_lease_list): ) ) - for dhcp_lease_information in sorted(dhcp_lease_list, key=lambda l: l["hostname"]): + for dhcp_lease_information in sorted( + dhcp_lease_list, key=lambda lease: lease["hostname"] + ): dhcp_lease_list_output.append( "{bold}\ {lease_hostname: <{lease_hostname_length}} \ @@ -1059,7 +1061,7 @@ def format_list_acl(acl_list): ) for acl_information in sorted( - acl_list, key=lambda l: l["direction"] + str(l["order"]) + acl_list, key=lambda acl: acl["direction"] + str(acl["order"]) ): acl_list_output.append( "{bold}\