Fix slow search assignment
parent
1901e2e54d
commit
5bff665167
|
@ -51,9 +51,9 @@ class WarningList():
|
||||||
|
|
||||||
if self.slow_search and self.type == 'cidr':
|
if self.slow_search and self.type == 'cidr':
|
||||||
self._network_objects = self._network_index()
|
self._network_objects = self._network_index()
|
||||||
# If network objects is empty, reverting to default anyway
|
# If network objects is empty, reverting to default anyway
|
||||||
if not self._network_objects:
|
if not self._network_objects:
|
||||||
self.slow_search = False
|
self.slow_search = False
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<{self.__class__.__name__}(type="{self.name}", version="{self.version}", description="{self.description}")'.format(self=self)
|
return '<{self.__class__.__name__}(type="{self.name}", version="{self.version}", description="{self.description}")'.format(self=self)
|
||||||
|
|
Loading…
Reference in New Issue