Skip to content

Commit

Permalink
vsp change volume's get rule
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjiangyu-ghca committed Nov 30, 2022
1 parent 4ba8e59 commit 552cbcf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion delfin/drivers/hitachi/vsp/vsp_stor.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,15 @@ def list_volumes(self, context):

def get_volumes_paginated(self, volume_list, head_id):
try:
if head_id > 10000:
return True
volumes_info = self.rest_handler.get_volumes(head_id)
if not volumes_info or not volumes_info.get('data'):
return True
volumes = volumes_info.get('data')
for volume in volumes:
if volume.get('emulationType') == 'NOT DEFINED':
return True
continue
orig_pool_id = volume.get('poolId')
compressed = False
deduplicated = False
Expand Down

0 comments on commit 552cbcf

Please sign in to comment.