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