Lint: E711 comparison to None should be 'if cond is None:'

This commit is contained in:
2020-11-06 19:36:36 -05:00
parent 4d6f36aca0
commit ce01b41d81
3 changed files with 7 additions and 7 deletions

View File

@ -1318,7 +1318,7 @@ def collect_vm_stats(queue):
if debug:
logger.out("Connecting to libvirt", state='d', prefix='vm-thread')
lv_conn = libvirt.open(libvirt_name)
if lv_conn == None:
if lv_conn is None:
logger.out('Failed to open connection to "{}"'.format(libvirt_name), state='e')
return