fixed sanity-check on parent in restart_services
This commit is contained in:
parent
db9eab4660
commit
7456538907
@ -124,12 +124,12 @@ def restart_services():
|
|||||||
tested_parents = set()
|
tested_parents = set()
|
||||||
for proc in retest_procs:
|
for proc in retest_procs:
|
||||||
parent = _get_top_parent(proc)
|
parent = _get_top_parent(proc)
|
||||||
|
if not parent:
|
||||||
|
continue
|
||||||
parent_name = parent.name()
|
parent_name = parent.name()
|
||||||
if parent in tested_parents:
|
if parent in tested_parents:
|
||||||
log.debug('{} belongs to already tested parent {}'.format(proc, parent))
|
log.debug('{} belongs to already tested parent {}'.format(proc, parent))
|
||||||
continue
|
continue
|
||||||
if not parent:
|
|
||||||
continue
|
|
||||||
|
|
||||||
if _get_deleted_open_files(proc):
|
if _get_deleted_open_files(proc):
|
||||||
tested_parents.add(parent)
|
tested_parents.add(parent)
|
||||||
|
Loading…
Reference in New Issue
Block a user