Fix slow search assignment

pull/5/head
Ilya Glotov 2019-07-09 00:27:38 +03:00
parent 1901e2e54d
commit 5bff665167
No known key found for this signature in database
GPG Key ID: 5862B629BFB84D34
1 changed files with 3 additions and 3 deletions

View File

@ -51,9 +51,9 @@ class WarningList():
if self.slow_search and self.type == 'cidr':
self._network_objects = self._network_index()
# If network objects is empty, reverting to default anyway
if not self._network_objects:
self.slow_search = False
# If network objects is empty, reverting to default anyway
if not self._network_objects:
self.slow_search = False
def __repr__(self):
return '<{self.__class__.__name__}(type="{self.name}", version="{self.version}", description="{self.description}")'.format(self=self)