Supress a couple pylint warnings
This commit is contained in:
parent
9dc8329dec
commit
376a9e92ba
1 changed files with 2 additions and 1 deletions
|
|
@ -148,6 +148,7 @@ class State():
|
||||||
exe.start_thread(self.fix_tmux_layout_loop)
|
exe.start_thread(self.fix_tmux_layout_loop)
|
||||||
|
|
||||||
def disk_safety_checks(self, prep=False, wait_for_self_tests=True):
|
def disk_safety_checks(self, prep=False, wait_for_self_tests=True):
|
||||||
|
# pylint: disable=too-many-branches
|
||||||
"""Run disk safety checks."""
|
"""Run disk safety checks."""
|
||||||
self_tests_in_progress = False
|
self_tests_in_progress = False
|
||||||
for disk in self.disks:
|
for disk in self.disks:
|
||||||
|
|
@ -683,7 +684,7 @@ def cpu_mprime_test(state, test_objects):
|
||||||
def disable_disk_tests(disk):
|
def disable_disk_tests(disk):
|
||||||
"""Disable all tests for disk."""
|
"""Disable all tests for disk."""
|
||||||
LOG.warning('Disabling all tests for: %s', disk.path)
|
LOG.warning('Disabling all tests for: %s', disk.path)
|
||||||
for name, test in disk.tests.items():
|
for test in disk.tests.values():
|
||||||
if test.status in ('Pending', 'Working'):
|
if test.status in ('Pending', 'Working'):
|
||||||
test.set_status('Denied')
|
test.set_status('Denied')
|
||||||
test.disabled = True
|
test.disabled = True
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue