diff options
author | Steve McIntyre <steve.mcintyre@linaro.org> | 2016-03-12 11:51:47 +0000 |
---|---|---|
committer | Steve McIntyre <steve.mcintyre@linaro.org> | 2016-03-12 11:51:47 +0000 |
commit | 0850e9b47c23af820c309ad945927626f5905900 (patch) | |
tree | e5e5699d107af7da4f20756fd1ca28310dd3a944 | |
parent | d2313b2cdb7e4c4b81330ff6e4efc51ac8b032af (diff) |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']) |