aboutsummaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2014-12-23 14:06:05 +0000
committerSteve McIntyre <steve.mcintyre@linaro.org>2014-12-23 14:06:05 +0000
commitf8aac9e8d9661fc2d934f9d97f607979239fd2d5 (patch)
tree74f16ba8122cd17c4d5b177d20d75ff69050a264 /util.py
parentcc25b5ce5ba6a6f03ca069be3e701dce23a92ddd (diff)
Use the right variable name for switch_name
Change-Id: I761f62cfc2b08ba348c76137a3f658121b115739
Diffstat (limited to 'util.py')
-rw-r--r--util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.py b/util.py
index b9ed137..3c68040 100644
--- a/util.py
+++ b/util.py
@@ -25,7 +25,7 @@ class VlanUtil:
s.switch_connect(config.switches[switch_name].username,
config.switches[switch_name].password,
config.switches[switch_name].enable_password)
- ret[switch] = 'Found switch %s with %d ports' % (switch, len(s.switch_get_port_names()))
+ ret[switch_name] = 'Found switch %s with %d ports' % (switch_name, len(s.switch_get_port_names()))
s.switch_disconnect()
del(s)