Using mutable values as default arguments will cause unexpected behavior. Signed-off-by: Satoshi Fujimoto <satoshi.fujimo...@gmail.com> --- ryu/services/protocols/ovsdb/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ryu/services/protocols/ovsdb/client.py b/ryu/services/protocols/ovsdb/client.py index d0ec5b0..68d6866 100644 --- a/ryu/services/protocols/ovsdb/client.py +++ b/ryu/services/protocols/ovsdb/client.py @@ -286,7 +286,8 @@ class RemoteOvsdb(app_manager.RyuApp): @classmethod def factory(cls, sock, address, probe_interval=None, min_backoff=None, max_backoff=None, schema_tables=None, - schema_exclude_columns={}, *args, **kwargs): + schema_exclude_columns=None, *args, **kwargs): + schema_exclude_columns = schema_exclude_columns or {} ovs_stream = stream.Stream(sock, None, None) connection = jsonrpc.Connection(ovs_stream) schemas = discover_schemas(connection) -- 2.7.4 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel