Merge "Bail autotune if uuid is None"

This commit is contained in:
Jenkins 2017-02-02 14:39:41 +00:00 committed by Gerrit Code Review
commit 30141278c2
1 changed files with 1 additions and 0 deletions

View File

@ -421,6 +421,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))