]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Don't shadow str
authorChang Bo Guo <guochbo@cn.ibm.com>
Sun, 10 Nov 2013 07:48:10 +0000 (23:48 -0800)
committerChang Bo Guo <guochbo@cn.ibm.com>
Sun, 10 Nov 2013 07:48:10 +0000 (23:48 -0800)
In the  agent/linux/ovs_lib.py we were shadowing the str keyword with
local variable. Let's not do that.

Change-Id: If800804b1e1f12d782bac524c92f300bd77fdd3c

neutron/agent/linux/ovs_lib.py

index 6a4e7c652c39158f2f7428bc3b5d9c2dc4f6d16d..6857e9fb89ce6334422df8d69eda5a62d7f898cd 100644 (file)
@@ -275,8 +275,8 @@ class OVSBridge(BaseOVS):
     def db_get_map(self, table, record, column):
         output = self.run_vsctl(["get", table, record, column])
         if output:
-            str = output.rstrip("\n\r")
-            return self.db_str_to_map(str)
+            output_str = output.rstrip("\n\r")
+            return self.db_str_to_map(output_str)
         return {}
 
     def db_get_val(self, table, record, column):