From 22bb61e9ee9576e77495c0c5c71fa2d243a98fb6 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 23 Aug 2011 10:40:24 -0700 Subject: [PATCH] ovs.jsonrpc: Remove Connection.get_name()--clients can use 'name' directly. Suggested-by: Reid Price --- python/ovs/jsonrpc.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python/ovs/jsonrpc.py b/python/ovs/jsonrpc.py index 66c260fa..1cc36964 100644 --- a/python/ovs/jsonrpc.py +++ b/python/ovs/jsonrpc.py @@ -215,9 +215,6 @@ class Connection(object): else: return len(self.output) - def get_name(self): - return self.name - def __log_msg(self, title, msg): logging.debug("%s: %s %s" % (self.name, title, msg)) @@ -371,7 +368,7 @@ class Session(object): def open_unreliably(jsonrpc): reconnect = ovs.reconnect.Reconnect(ovs.timeval.msec()) reconnect.set_quiet(True) - reconnect.set_name(jsonrpc.get_name()) + reconnect.set_name(jsonrpc.name) reconnect.set_max_tries(0) reconnect.connected(ovs.timeval.msec()) return Session(reconnect, jsonrpc) -- 2.30.2