1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-24 02:37:05 +00:00

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

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)