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:
Satoshi Fujimoto 2017-06-16 11:45:46 +09:00 committed by FUJITA Tomonori
parent 27b8d44bb1
commit 10b9273928

View File

@ -155,12 +155,12 @@ def _filter_schema(schema, schema_tables, exclude_table_columns):
"""
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:
columns = {}
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:
continue