From dcd7ac066c31ec3b1e0b740b9ca6eabbf037d8c1 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 22 Feb 2023 12:21:29 -0500 Subject: [PATCH] Correct lint error E741 --- client-cli/pvc/cli_lib/network.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}\