Agent: Change `not ==` to `!=` in _remove_blocklisted_ips()

This commit is contained in:
Mike Salvatore 2021-12-16 08:47:29 -05:00
parent db246d6740
commit bfed27301a
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ def _remove_blocklisted_ips(
scan_targets: List[NetworkAddress], blocked_ips: List[str]
) -> List[NetworkAddress]:
filtered_blocked_ips = _filter_invalid_ranges(blocked_ips, "Invalid blocked IP provided:")
if not len(filtered_blocked_ips) == len(blocked_ips):
if len(filtered_blocked_ips) != len(blocked_ips):
raise InvalidNetworkRangeError("Received an invalid blocked IP. Aborting just in case.")
return _remove_ips_from_scan_targets(scan_targets, filtered_blocked_ips)