Fix missing drive form factor
All checks were successful
buildbot/travis_bionic Build done.
buildbot/multibuild_parent Build done.

This commit is contained in:
Peter Šurda 2024-12-09 16:14:24 +08:00
parent 43e019615e
commit ef9e8e33d6
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -135,7 +135,10 @@ class ServerData:
details['transport'] = re.search(r'Transport:\s*(.*)', output).group(1)
details['checksum'] = re.search(r'Checksum:\s*(.*)', output).group(1)
details['buffer_size'] = re.search(r'cache/buffer size\s*=\s*(.*)', output).group(1)
try:
details['form_factor'] = re.search(r'Form Factor:\s*(.*)', output).group(1)
except AttributeError:
details['form_factor'] = "N/A"
devices[device] = details