Skip to content

Commit

Permalink
vsp add alerts get
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjiangyu-ghca committed Dec 30, 2021
1 parent b08035a commit dce29b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions delfin/drivers/hitachi/vsp/vsp_stor.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,9 @@ def list_disks(self, context):
'storage_id': self.storage_id,
'native_disk_id': disk.get('driveLocationId'),
'serial_number': disk.get('serialNumber'),
'speed': int(disk.get('driveSpeed')),
'capacity': int(disk.get('totalCapacity') * units.Gi),
'speed': int(disk.get('driveSpeed', 0)),
'capacity':
int(disk.get('totalCapacity', 0)) * units.Gi,
'status': status,
'physical_type': physical_type,
'logical_type': logical_type,
Expand Down

0 comments on commit dce29b5

Please sign in to comment.