summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/lib/ovs/bridge.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ryu/lib/ovs/bridge.py b/ryu/lib/ovs/bridge.py
index 9753fa29..f86e9ae0 100644
--- a/ryu/lib/ovs/bridge.py
+++ b/ryu/lib/ovs/bridge.py
@@ -171,7 +171,8 @@ class OVSBridge(object):
"""
command = ovs_vsctl.VSCtlCommand('get-controller', [self.br_name])
self.run_command([command])
- return command.result[0]
+ result = command.result
+ return result[0] if len(result) == 1 else result
def set_controller(self, controllers):
"""