aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2014-12-23 16:56:40 +0000
committerSteve McIntyre <steve.mcintyre@linaro.org>2014-12-23 16:56:40 +0000
commita2020cbe44facff2a857b269c07da06d3cb47b34 (patch)
tree31e75821e8c00fabbfddbf7234b144bf2ba7334f
parente8d8058de0f83d9f490849dff3ca4487b7d46bdd (diff)
And return the probed data
Change-Id: Id8930e6827dfd88a848e10c5c0507813f90e7660
-rw-r--r--util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.py b/util.py
index 5ce629f..8a7caa8 100644
--- a/util.py
+++ b/util.py
@@ -24,9 +24,10 @@ class VlanUtil:
s.switch_connect(config.switches[switch_name].username,
config.switches[switch_name].password,
config.switches[switch_name].enable_password)
- ret[switch_name] = 'Found switch %s with %d ports' % (switch_name, len(s.switch_get_port_names()))
+ ret[switch_name] = 'Found %d ports' % len(s.switch_get_port_names())
s.switch_disconnect()
del(s)
+ return ret
# Simple helper wrapper for all the read-only database queries
def perform_db_query(self, state, command, data):