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:
parent
d661d623dc
commit
fd4fcdaf53
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user