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:
Chris Holcombe 2017-01-30 08:23:56 -08:00
parent f11843671b
commit 69b691edaf
1 changed files with 1 additions and 0 deletions

View File

@ -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))