Fix lease duplication bug due to bad conditional logic

This commit is contained in:
Joshua Boniface 2018-10-02 19:48:43 -04:00
parent f461f12927
commit e5ed3d2c44
1 changed files with 1 additions and 1 deletions

View File

@ -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]