Flake8 complains:
utilities/bugtool/ovs-bugtool.in:761:5: E741 ambiguous variable name 'l'
utilities/bugtool/ovs-bugtool.in:1162:5: E741 ambiguous variable name 'l'
Makefile:6193: recipe for target 'flake8-check' failed

Signed-off-by: Alin Gabriel Serdean <aserd...@ovn.org>
---
 utilities/bugtool/ovs-bugtool.in | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in
index 8d220fd74..288c34f98 100755
--- a/utilities/bugtool/ovs-bugtool.in
+++ b/utilities/bugtool/ovs-bugtool.in
@@ -758,10 +758,10 @@ exclude those logs from the archive.
 
 def dump_scsi_hosts(cap):
     output = ''
-    l = os.listdir('/sys/class/scsi_host')
-    l.sort()
+    scsi_list = os.listdir('/sys/class/scsi_host')
+    scsi_list.sort()
 
-    for h in l:
+    for h in scsi_list:
         procname = ''
         try:
                 f = open('/sys/class/scsi_host/%s/proc_name' % h)
@@ -1159,9 +1159,9 @@ def update_cap_size(cap, size):
 
 def update_cap(cap, k, v):
     global caps
-    l = list(caps[cap])
-    l[k] = v
-    caps[cap] = tuple(l)
+    temp = list(caps[cap])
+    temp[k] = v
+    caps[cap] = tuple(temp)
 
 
 def size_of_dir(d, pattern=None, negate=False):
-- 
2.16.1.windows.1

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to