Bail autotune if uuid is None
tune_dev logs a debug message saying it cannot continue and then tries to continue. Closes-Bug: 1660240 Change-Id: I62317d80f9249030dcf1d9ccd80e4340ad8594a1
This commit is contained in:
parent
f11843671b
commit
69b691edaf
|
@ -390,6 +390,7 @@ def tune_dev(block_dev):
|
|||
if uuid is None:
|
||||
log('block device {} uuid is None. Unable to save to '
|
||||
'hdparm.conf'.format(block_dev), level=DEBUG)
|
||||
return
|
||||
save_settings_dict = {}
|
||||
log('Tuning device {}'.format(block_dev))
|
||||
status_set('maintenance', 'Tuning device {}'.format(block_dev))
|
||||
|
|
Loading…
Reference in New Issue