[ovs-dev,04/55] python: Fix invalid variable reference.
diff mbox

Message ID 1450730875-18083-5-git-send-email-russell@ovn.org
State Deferred
Headers show

Commit Message

Russell Bryant Dec. 21, 2015, 8:47 p.m. UTC
This code referred to "rows" where it meant to refer to "fetched_rows".

Signed-off-by: Russell Bryant <russell@ovn.org>
---
 python/ovs/db/idl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py
index 5e3466e..8d50f65 100644
--- a/python/ovs/db/idl.py
+++ b/python/ovs/db/idl.py
@@ -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,),