aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2016-03-12 11:51:47 +0000
committerSteve McIntyre <steve.mcintyre@linaro.org>2016-03-12 11:51:47 +0000
commit0850e9b47c23af820c309ad945927626f5905900 (patch)
treee5e5699d107af7da4f20756fd1ca28310dd3a944
parentd2313b2cdb7e4c4b81330ff6e4efc51ac8b032af (diff)
downloadvland-0850e9b47c23af820c309ad945927626f5905900.tar.gz
Bugfix: s/if/elif/ typo in the middle of the db_update API handler
Calls would have worked, but reported failure by falling through Change-Id: Ia262caf55ab121c1dd5ee4c4fc44e65ad2975a10
-rw-r--r--util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.py b/util.py
index 493a4dc..25d8d9b 100644
--- a/util.py
+++ b/util.py
@@ -180,7 +180,7 @@ class VlanUtil:
number,
state.default_vlan_id,
state.default_vlan_id)
- if command == 'db.create_trunk':
+ elif command == 'db.create_trunk':
ret = db.create_trunk(data['port_id1'], data['port_id2'])
elif command == 'db.delete_switch':
ret = db.delete_switch(data['switch_id'])