pep8 and fixes
This commit is contained in:
parent
7b511f7f7d
commit
81ae30f6dc
1 changed files with 3 additions and 3 deletions
|
|
@ -303,7 +303,7 @@ class Inventory():
|
||||||
'virtual' in product.lower() or 'logical' in product.lower() or \
|
'virtual' in product.lower() or 'logical' in product.lower() or \
|
||||||
product in non_raid_disks or \
|
product in non_raid_disks or \
|
||||||
description == 'SCSI Enclosure' or \
|
description == 'SCSI Enclosure' or \
|
||||||
'volume' in description.lower() :
|
'volume' in description.lower():
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
@ -316,13 +316,13 @@ class Inventory():
|
||||||
|
|
||||||
logicalname = disk.get('logicalname')
|
logicalname = disk.get('logicalname')
|
||||||
description = disk.get('description')
|
description = disk.get('description')
|
||||||
size = disk.get('size')
|
size = disk.get('size', 0)
|
||||||
product = disk.get('product')
|
product = disk.get('product')
|
||||||
serial = disk.get('serial')
|
serial = disk.get('serial')
|
||||||
|
|
||||||
d = {}
|
d = {}
|
||||||
d["name"] = ""
|
d["name"] = ""
|
||||||
d['Size'] = '{} GB'.format(int(disk['size']/1024/1024/1024))
|
d['Size'] = '{} GB'.format(int(size/1024/1024/1024))
|
||||||
d['logicalname'] = logicalname
|
d['logicalname'] = logicalname
|
||||||
d['description'] = description
|
d['description'] = description
|
||||||
d['SN'] = serial
|
d['SN'] = serial
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue