Fix lease duplication bug due to bad conditional logic
This commit is contained in:
parent
f461f12927
commit
e5ed3d2c44
|
@ -618,7 +618,7 @@ class ZKDatabase(object):
|
||||||
|
|
||||||
def get(self, pattern):
|
def get(self, pattern):
|
||||||
pattern = list(pattern)
|
pattern = list(pattern)
|
||||||
return [line for line in self.all() if pattern[0] == line[0] or pattern[1] == line[1] or pattern[2] == line[2]]
|
return [line for line in self.all() if pattern[0] == line[0] and pattern[1] == line[1] and pattern[2] == line[2]]
|
||||||
|
|
||||||
def isstatic(self, pattern):
|
def isstatic(self, pattern):
|
||||||
macaddr = pattern[0]
|
macaddr = pattern[0]
|
||||||
|
|
Loading…
Reference in New Issue