diff options
author | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-02-13 04:00:11 +0000 |
---|---|---|
committer | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-02-13 04:00:11 +0000 |
commit | 3aff7da5d03092c3e02180aec7752f74f60b8243 (patch) | |
tree | 07760a5cd2fdd8132ebeb37d7118db44ba24faf4 /util.py | |
parent | 3bb7bbd91e98999740a42f582ffb7c46722c84cb (diff) |
Add missing string parameters in error message
Change-Id: Iada53658d4fc2b936da79ccae16d95b6b218e7f0
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -434,9 +434,9 @@ class VlanUtil: if port.is_locked: raise InputError("Port ID %d is locked" % port_id) if mode == 'trunk' and port.is_trunk: - raise InputError("Port ID %d is already in trunk mode") + raise InputError("Port ID %d is already in trunk mode" % port_id) if mode == 'access' and not port.is_trunk: - raise InputError("Port ID %d is already in access mode") + raise InputError("Port ID %d is already in access mode" % port_id) base_vlan_tag = db.get_vlan_tag_by_id(port.base_vlan_id) # Get the right driver |