aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2014-12-05 17:29:35 +0000
committerSteve McIntyre <steve.mcintyre@linaro.org>2014-12-05 17:29:35 +0000
commit6dd00be04af240d2fad1c5b21478617ddb5a326f (patch)
treeeae05580436783eefbfd25a7a179eb6761ef5d5a /db
parent75dc4ec9673d4f2236a95a557e2f1a5200eae7c8 (diff)
Fix syntax for is_trunk and is_locked
Change-Id: I02486cc825cf69d8042f8d0ec151a2483296c808
Diffstat (limited to 'db')
-rw-r--r--db/db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/db.py b/db/db.py
index dd4ba91..6d557aa 100644
--- a/db/db.py
+++ b/db/db.py
@@ -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: