And return the probed data
Change-Id: Id8930e6827dfd88a848e10c5c0507813f90e7660
diff --git a/util.py b/util.py
index 5ce629f..8a7caa8 100644
--- a/util.py
+++ b/util.py
@@ -24,9 +24,10 @@
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):