Fix missing drive form factor
This commit is contained in:
parent
43e019615e
commit
ef9e8e33d6
5
agent.py
5
agent.py
|
@ -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)
|
||||
details['form_factor'] = re.search(r'Form Factor:\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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user