mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +00:00
python: Fix invalid varable/function references.
This code referred to "rows" where it meant to refer to "fetched_rows". The patch resolves flake8 error: F821 undefined name 'rows' python/build/nroff.py used a function fatal() that was not defined, which raised the same type of error. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -1221,7 +1221,7 @@ class Transaction(object):
|
||||
if len(fetched_rows) != 1:
|
||||
# XXX rate-limit
|
||||
vlog.warn('"select" reply "rows" has %d elements '
|
||||
'instead of 1' % len(rows))
|
||||
'instead of 1' % len(fetched_rows))
|
||||
continue
|
||||
fetched_row = fetched_rows[0]
|
||||
if not Transaction.__check_json_type(fetched_row, (dict,),
|
||||
|
||||
Reference in New Issue
Block a user