Fixed E712 (true-false-comparison): Comparison to `False` should be `cond is False` or `if not cond:`

This commit is contained in:
Teal Dulcet 2023-12-22 07:23:57 -08:00 committed by Joshua Tauberer
parent d661d623dc
commit fd4fcdaf53
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ def check_service(i, service, env):
output.print_error("%s is not running (port %d)." % (service['name'], service['port']))
# Flag if local DNS is not running.
if not running and service["port"] == 53 and service["public"] == False:
if not running and service["port"] == 53 and service["public"] is False:
fatal = True
return (i, running, fatal, output)