diff options
author | Steve McIntyre <steve.mcintyre@linaro.org> | 2014-12-23 16:56:40 +0000 |
---|---|---|
committer | Steve McIntyre <steve.mcintyre@linaro.org> | 2014-12-23 16:56:40 +0000 |
commit | a2020cbe44facff2a857b269c07da06d3cb47b34 (patch) | |
tree | 31e75821e8c00fabbfddbf7234b144bf2ba7334f | |
parent | e8d8058de0f83d9f490849dff3ca4487b7d46bdd (diff) |
And return the probed data
Change-Id: Id8930e6827dfd88a848e10c5c0507813f90e7660
-rw-r--r-- | util.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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): |