From 552cbcffe5e77199ac2dc05f3b324f93308f4685 Mon Sep 17 00:00:00 2001 From: tanjy Date: Wed, 30 Nov 2022 15:27:39 +0800 Subject: [PATCH] vsp change volume's get rule --- delfin/drivers/hitachi/vsp/vsp_stor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/delfin/drivers/hitachi/vsp/vsp_stor.py b/delfin/drivers/hitachi/vsp/vsp_stor.py index 87f4f9de3..e6b929529 100644 --- a/delfin/drivers/hitachi/vsp/vsp_stor.py +++ b/delfin/drivers/hitachi/vsp/vsp_stor.py @@ -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