service/ovsdb: Use Python 2/3 compatible code
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
27b8d44bb1
commit
10b9273928
@ -155,12 +155,12 @@ def _filter_schema(schema, schema_tables, exclude_table_columns):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
tables = {}
|
tables = {}
|
||||||
for tbl_name, tbl_data in schema['tables'].iteritems():
|
for tbl_name, tbl_data in schema['tables'].items():
|
||||||
if not schema_tables or tbl_name in schema_tables:
|
if not schema_tables or tbl_name in schema_tables:
|
||||||
columns = {}
|
columns = {}
|
||||||
|
|
||||||
exclude_columns = exclude_table_columns.get(tbl_name, [])
|
exclude_columns = exclude_table_columns.get(tbl_name, [])
|
||||||
for col_name, col_data in tbl_data['columns'].iteritems():
|
for col_name, col_data in tbl_data['columns'].items():
|
||||||
if col_name in exclude_columns:
|
if col_name in exclude_columns:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user