diff options
author | Steve McIntyre <steve.mcintyre@linaro.org> | 2014-12-05 17:29:35 +0000 |
---|---|---|
committer | Steve McIntyre <steve.mcintyre@linaro.org> | 2014-12-05 17:29:35 +0000 |
commit | 6dd00be04af240d2fad1c5b21478617ddb5a326f (patch) | |
tree | eae05580436783eefbfd25a7a179eb6761ef5d5a /db | |
parent | 75dc4ec9673d4f2236a95a557e2f1a5200eae7c8 (diff) |
Fix syntax for is_trunk and is_locked
Change-Id: I02486cc825cf69d8042f8d0ec151a2483296c808
Diffstat (limited to 'db')
-rw-r--r-- | db/db.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -372,7 +372,7 @@ class VlanDB: if port is None: raise InputError("Port ID %d does not exist" % int(port_id)) - if port["is_trunk"] or port["is_locked"]: + if port.is_trunk or port.is_locked: raise CriticalError("The port is locked") vlan = self.get_vlan_by_id(vlan_id) @@ -395,7 +395,7 @@ class VlanDB: if port is None: raise InputError("Port ID %d does not exist" % int(port_id)) - if port["is_trunk"] or port["is_locked"]: + if port.is_trunk or port.is_locked: raise CriticalError("The port is locked") try: |