Fix linting errors

Change-Id: I16d01e15438e3d61033863b4c03087d1a0b7a008
This commit is contained in:
Luciano Lo Giudice 2022-08-01 17:44:29 -03:00
parent 89f5ee0d04
commit 78bd3fd21a
2 changed files with 3 additions and 3 deletions

View File

@ -2518,7 +2518,7 @@ class WatchDog(object):
:type timeout: int
"""
start_time = time.time()
while(not wait_f()):
while not wait_f():
now = time.time()
if now > start_time + timeout:
raise WatchDog.WatchDogTimeoutException()
@ -3418,7 +3418,7 @@ def apply_osd_settings(settings):
set_cmd = base_cmd + ' set {key} {value}'
def _get_cli_key(key):
return(key.replace(' ', '_'))
return key.replace(' ', '_')
# Retrieve the current values to check keys are correct and to make this a
# noop if setting are already applied.
for osd_id in get_local_osd_ids():

View File

@ -2058,7 +2058,7 @@ class CephUseBluestoreTestCase(unittest.TestCase):
_cmp_pkgrevno):
_cmp_pkgrevno.return_value = 1
_config.return_value = True
assert(utils.use_bluestore())
assert (utils.use_bluestore())
@patch.object(utils, 'cmp_pkgrevno')
@patch.object(utils, 'config')