fix: get disk serial number
This commit is contained in:
parent
282f914665
commit
a9af96bba2
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ class Inventory():
|
||||||
desc = disk.get('description')
|
desc = disk.get('description')
|
||||||
name = '{} ({})'.format(disk['Model'], disk['Size'])
|
name = '{} ({})'.format(disk['Model'], disk['Size'])
|
||||||
description = disk['Type']
|
description = disk['Type']
|
||||||
sn = getattr(disk, 'SN', 'unknown')
|
sn = disk.get('SN', 'unknown')
|
||||||
|
|
||||||
parms = {
|
parms = {
|
||||||
'device': self.device_id,
|
'device': self.device_id,
|
||||||
|
|
Loading…
Reference in a new issue