Fix disk size
This commit is contained in:
parent
8dde35dd31
commit
56627c1aa9
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ class Inventory():
|
|||
for disk in self.lshw.get_hw_linux("storage"):
|
||||
if self.is_virtual_disk(disk, raid_devices):
|
||||
continue
|
||||
size = int(getattr(disk, "size", 0)) / 1073741824
|
||||
size = round(int(disk.get("size", 0)) / 1073741824, 1)
|
||||
d = {
|
||||
"name": "",
|
||||
'Size': '{} GB'.format(size),
|
||||
|
|
Loading…
Reference in a new issue